Skip to content

Text with a display property to show a fringe symbol is not hidden #58

@sheijk

Description

@sheijk

Repro steps:

  1. create new buffer
  2. M-x impatient-mode
  3. Insert this snippet: (insert "\n->" (propertize "hello" 'display '(left-fringe hideshowvis-hideable-marker hideshowvis-hidable-face)) "<-")
  4. M-x eval-last-sexp (or C-x C-e)

Now I see this in the browser:

Image

And htmlize-region produces:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<!-- Created by htmlize-1.57 in css mode. -->
<html>
  <head>
    <title>untitled</title>
    <style type="text/css">
    <!--
      body {
        color: #000000;
        background-color: #ffffff;
      }
      .hl-line {
        /* hl-line */
        background-color: #ededed;
      }
      .region {
        /* region */
        background-color: #D0D9E2;
      }

      a {
        color: inherit;
        background-color: inherit;
        font: inherit;
        text-decoration: inherit;
      }
      a:hover {
        text-decoration: underline;
      }
    -->
    </style>
  </head>
  <body>
    <pre>
<span class="region"><span class="hl-line">-&gt;hello&lt;-</span></span></pre>
  </body>
</html>

These cases work fine so it might be just a missing case in the display handling:

(insert "\n->"
        (propertize "hello" 'display "this is fine, though")
        "<-")

(insert "\n->"
        (propertize "hello" 'display "")
        "<-")

Happens when using hideshowvis-minor-mode and impatient-mode together see bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions