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 #17 received at 21207 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: bruce.connor.am <at> gmail.com
Cc: 21207 <at> debbugs.gnu.org
Subject: Re: bug#21207: 25.0.50;
 Cursor position behaves unpredictably on the 'display text property
Date: Fri, 07 Aug 2015 22:04:21 +0300
> Date: Fri, 7 Aug 2015 19:31:29 +0100
> From: Artur Malabarba <bruce.connor.am <at> gmail.com>
> Cc: 21207 <at> debbugs.gnu.org
> 
> I'm using this to visually wrap some lines, but not others (as part of
> rewriting longlines-mode to work without editing the buffer). 
> I can wrap only the lines I want by doing the procedure in item 2 (displaying a
> space as a newline). When the line I'm wrapping happens to be indented, I have
> to use the procedure in item 4 (so the second line gets indented too), and it's
> mildly annoying that I can't place the cursor at the end of the line.

Can you use line-prefix and/or wrap-prefix for that?

It should be possible to support the 'cursor' property on a newline
inside a display string, but not inside an overlay string.  Not sure
if this disparity will not cause confusion and resistance, as we
generally try to support the same features in both cases.

In general, I hoped that line wrap at some constant column other than
the window edge (which is what I understand you are trying to do) will
be implemented on the display engine level, where IMO it belongs, not
by using display properties and such likes.




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.