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/)

Reply via email to