Re: [BUG] org-indent and display text property not preserving column when moving

2023-02-17 Thread Darius Foo
Ihor Radchenko  wrote:
> Thanks for reporting!
> It is unlikely an Org bug. Rather Emacs bug.
> May you report it to Emacs devs via M-x report-emacs-bug?

Thanks! I narrowed it down further to just calls to add-text-properties.
Will do that.


Re: [BUG] org-indent and display text property not preserving column when moving

2023-02-17 Thread Ihor Radchenko
Darius Foo  writes:

> 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 for reporting!
It is unlikely an Org bug. Rather Emacs bug.
May you report it to Emacs devs via M-x report-emacs-bug?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



[BUG] org-indent and display text property not preserving column when moving

2023-02-16 Thread Darius Foo
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/)