GNU bug report logs - #25855
25.1; garbage display by raise display specification

Previous Next

Package: emacs;

Reported by: ynyaaa <at> gmail.com

Date: Fri, 24 Feb 2017 06:10:02 UTC

Severity: normal

Found in version 25.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 25855 <at> debbugs.gnu.org (full text, mbox):

From: ynyaaa <at> gmail.com
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 25855 <at> debbugs.gnu.org
Subject: Re: bug#25855: 25.1; garbage display by raise display specification
Date: Sat, 25 Feb 2017 00:36:15 +0900
Eli Zaretskii <eliz <at> gnu.org> 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))))




This bug report was last modified 8 years and 90 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.