Subject: Re: bug#25855: 25.1; garbage display by raise display specification

From: [email-masked]
Date: Sat, 25 Feb 2017 00:36:15 +0900

Eli Zaretskii <[email-masked]> writes:
>> (insert (propertize (make-string 100 ?\n) 'display '(raise 1)))
>
> What did you expect to see from 'raising' the newlines?  A newline has
> no glyph on display, so there's nothing to raise.
>
> IOW, why is this not the expected behavior?

I found that it is sufficient to put display property at the last
character of a buffer.
Evaluating the form below, leftmost digits remain to be displayed.

(progn
  (switch-to-buffer (generate-new-buffer "temp"))
  (dotimes (i 100) (insert (format "%d\n" i)))
  (goto-char (point-min))
  (redisplay)
  (erase-buffer)
  (insert (propertize "X" 'display '(raise 1))))