GNU bug report logs -
#61580
line-prefix and display text properties cause odd cursor movement
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 61580 in the body.
You can then email your comments to 61580 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#61580
; Package
emacs
.
(Fri, 17 Feb 2023 17:15:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Darius Foo <darius.foo.tw <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 17 Feb 2023 17:15:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
When moving the cursor up and down on lines which have both line-prefix and
display text properties, the cursor column isn't preserved, jumping ahead
or back by a fixed amount.
This can be reproduced with the following config
(add-text-properties 12 13 '(line-prefix " "))
(add-text-properties 27 28 '(line-prefix " "))
(add-text-properties 57 58 '(line-prefix " "))
(add-text-properties 72 73 '(line-prefix " "))
(add-text-properties 12 13 '(display "•"))
(add-text-properties 27 28 '(display "•"))
(add-text-properties 57 58 '(display "•"))
(add-text-properties 72 73 '(display "•"))
and this input file (which mimics org-indent).
* h1
** h2
- a.y.........
- x...........
*** h3
**** h4
- ....w.......
- z...........
With the cursor on x, pressing up moves it to y instead of a, and pressing
down moves it back to x. The amount moved depends on the indentation added
by line-prefix: with the cursor on z, pressing up moves it to w.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#61580
; Package
emacs
.
(Sat, 18 Feb 2023 11:43:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 61580 <at> debbugs.gnu.org (full text, mbox):
> From: Darius Foo <darius.foo.tw <at> gmail.com>
> Date: Sat, 18 Feb 2023 00:39:00 +0800
>
> When moving the cursor up and down on lines which have both line-prefix and display text properties, the
> cursor column isn't preserved, jumping ahead or back by a fixed amount.
>
> This can be reproduced with the following config
>
> (add-text-properties 12 13 '(line-prefix " "))
> (add-text-properties 27 28 '(line-prefix " "))
> (add-text-properties 57 58 '(line-prefix " "))
> (add-text-properties 72 73 '(line-prefix " "))
>
> (add-text-properties 12 13 '(display "•"))
> (add-text-properties 27 28 '(display "•"))
> (add-text-properties 57 58 '(display "•"))
> (add-text-properties 72 73 '(display "•"))
>
> and this input file (which mimics org-indent).
>
> * h1
> ** h2
> - a.y.........
> - x...........
> *** h3
> **** h4
> - ....w.......
> - z...........
>
> With the cursor on x, pressing up moves it to y instead of a, and pressing down moves it back to x. The
> amount moved depends on the indentation added by line-prefix: with the cursor on z, pressing up moves it to
> w.
Thanks, should be fixed now on the emacs-29 branch.
(This bug was a leftover from incomplete fix of bug#49695.)
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Thu, 02 Mar 2023 10:32:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Darius Foo <darius.foo.tw <at> gmail.com>
:
bug acknowledged by developer.
(Thu, 02 Mar 2023 10:32:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 61580-done <at> debbugs.gnu.org (full text, mbox):
> Cc: 61580 <at> debbugs.gnu.org
> Date: Sat, 18 Feb 2023 13:42:31 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
>
> > From: Darius Foo <darius.foo.tw <at> gmail.com>
> > Date: Sat, 18 Feb 2023 00:39:00 +0800
> >
> > When moving the cursor up and down on lines which have both line-prefix and display text properties, the
> > cursor column isn't preserved, jumping ahead or back by a fixed amount.
> >
> > This can be reproduced with the following config
> >
> > (add-text-properties 12 13 '(line-prefix " "))
> > (add-text-properties 27 28 '(line-prefix " "))
> > (add-text-properties 57 58 '(line-prefix " "))
> > (add-text-properties 72 73 '(line-prefix " "))
> >
> > (add-text-properties 12 13 '(display "•"))
> > (add-text-properties 27 28 '(display "•"))
> > (add-text-properties 57 58 '(display "•"))
> > (add-text-properties 72 73 '(display "•"))
> >
> > and this input file (which mimics org-indent).
> >
> > * h1
> > ** h2
> > - a.y.........
> > - x...........
> > *** h3
> > **** h4
> > - ....w.......
> > - z...........
> >
> > With the cursor on x, pressing up moves it to y instead of a, and pressing down moves it back to x. The
> > amount moved depends on the indentation added by line-prefix: with the cursor on z, pressing up moves it to
> > w.
>
> Thanks, should be fixed now on the emacs-29 branch.
>
> (This bug was a leftover from incomplete fix of bug#49695.)
No further comments, so I'm now closing this bug as fixed.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#61580
; Package
emacs
.
(Fri, 03 Mar 2023 04:41:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 61580-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
> No further comments, so I'm now closing this bug as fixed.
Yes, it works now. Thanks for fixing it so quickly!
[Message part 2 (text/html, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 31 Mar 2023 11:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 363 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.