GNU bug report logs - #21207
25.0.50; Cursor position behaves unpredictably on the 'display text property

Previous Next

Package: emacs;

Reported by: bruce.connor.am <at> gmail.com

Date: Fri, 7 Aug 2015 15:08:01 UTC

Severity: minor

Found in version 25.0.50

Full log


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

From: Artur Malabarba <bruce.connor.am <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 21207 <at> debbugs.gnu.org
Subject: Re: bug#21207: 25.0.50; Cursor position behaves unpredictably on the
 'display text property
Date: Sat, 8 Aug 2015 19:08:43 +0100
> Yes, sorry.  The important part is that it's not at the end of the
> string.
>
> In any case, due to the way cursor positioning in these cases is
> implemented, in order to decide that the cursor could be placed on a
> line that is part of the display string, the display engine needs to
> see at least one glyph from that display string on that line.  And a
> newline leaves no glyph.  So if you change your second scenario to
> this:
>
>   (add-text-properties (point) (1+ (point)) '(display "-\n------"))
>
> you will see that the cursor is placed on that line, before the
> newline.

Yes, I see what you mean.




This bug report was last modified 10 years and 4 days ago.

Previous Next


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