Subject: Re: bug#64696: 30.0.50; indent-to inherits preceding text properties, including 'invisible

From: Ihor Radchenko <[email-masked]>
Date: Sat, 22 Jul 2023 07:03:41 +0000

Eli Zaretskii <[email-masked]> writes:

>> From: Ihor Radchenko <[email-masked]>
>> Cc: [email-masked], [email-masked]
>> Date: Thu, 20 Jul 2023 09:10:02 +0000
>> 
>> You can do M-x yant/full-test after evaluating the code below
>
> And what are the problems you see with current-column in this example?
> (Let's leave indent-to alone for now.)

⛔ Warning (emacs): Test #1:: Everything visible.
⛔ Warning (emacs): Moved point after first ’word’
⛔ Warning (emacs): 1:: current-column = 4

Test #1 is expected - everything is visible, we are indeed at column 4.

⛔ Warning (emacs): Test #2:: ’word’ is inside folded heading (hidden using overlays).
⛔ Warning (emacs): Moved point after first ’word’
⛔ Warning (emacs): 1:: current-column = 4

Test #2 is unexpected - we are inside invisible region, but
current-column reports as if everything were visible.

⛔ Warning (emacs): Test #3:: ’word’ is hidden applying ’invisible text property to heading body.
⛔ Warning (emacs): Moved point after first ’word’
⛔ Warning (emacs): 1:: current-column = 0

Test #3 follows your previous explanation that current-column ignores
invisible text.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>