* [BUG] org-indent and display text property not preserving column when moving
@ 2023-02-16 3:30 Darius Foo
2023-02-17 11:18 ` Ihor Radchenko
0 siblings, 1 reply; 3+ messages in thread
From: Darius Foo @ 2023-02-16 3:30 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1162 bytes --]
Hi, I've encountered what seems like a bug with org-indent. When I move the
cursor using the arrow keys on lines with the display text property set,
its column isn't preserved, jumping ahead or back by a fixed amount.
This issue actually came up with org-modern, but I'm minimized it to the
following.
(use-package org
:mode (("\\.org$" . org-mode))
:custom
(org-startup-indented t)
:config
(font-lock-add-keywords 'org-mode '(("^\\(-\\)\\( \\)" 1 '(face nil
display "•")))))
Here is an org file to try it on. With the cursor on x, pressing up moves
it to y instead of a, and pressing down moves it back to x. It seems like
the amount moved depends on the indentation added by org-indent: with point
on z, pressing up moves it to w.
* h1
** h2
- a...y.......
- x...........
*** h3
**** h4
- ........w...
- z...........
Thanks.
Darius
Emacs : GNU Emacs 28.2 (build 2, x86_64-apple-darwin21.6.0, NS
appkit-2113.60 Version 12.5.1 (Build 21G83))
of 2023-01-06
Package: Org mode version 9.6.1 (9.6.1-g74eb0f @
/Users/darius/.emacs.d/straight/build/org/)
[-- Attachment #2: Type: text/html, Size: 1343 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-02-17 16:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-16 3:30 [BUG] org-indent and display text property not preserving column when moving Darius Foo
2023-02-17 11:18 ` Ihor Radchenko
2023-02-17 16:28 ` Darius Foo
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).