Using Org 9.6 with Emacs 29, write a link: [[123][test]] Most of the text will then be hidden, with "test" showing as a link, as expected. However if I remove the last ], the link highlighting disappears and only "test" is shown like regular text (/i.e./ instead of "[[123][test]" as would be expected). If I insert a character at the end or move the text, it is updated and "[[123][test]" shows as expected. (This bug does not occur in Org 9.5 for me.)
[-- Attachment #1: Type: text/plain, Size: 834 bytes --] Confirmed with 'emacs -Q -L ./lisp/ -l org' on latest version of Org. @Ihor, can you help push me in the right direction in terms of where in the codebase this issue might lie, so that I can examine the related section myself, and also bug a related maintainer about this? Thanks, Sam On Mon, Jun 20, 2022, at 10:14 PM, Tor Kringeland wrote: > Using Org 9.6 with Emacs 29, write a link: > > [[123][test]] > > Most of the text will then be hidden, with "test" showing as a link, as > expected. However if I remove the last ], the link highlighting > disappears and only "test" is shown like regular text (/i.e./ instead of > "[[123][test]" as would be expected). If I insert a character at the > end or move the text, it is updated and "[[123][test]" shows as > expected. > > (This bug does not occur in Org 9.5 for me.) > [-- Attachment #2: Type: text/html, Size: 1336 bytes --]
"Samuel Banya" <sbanya@fastmail.com> writes:
> Confirmed with 'emacs -Q -L ./lisp/ -l org' on latest version of Org.
>
> @Ihor, can you help push me in the right direction in terms of where in the codebase this issue might lie, so that I can examine the related section myself, and also bug a related maintainer about this?
It is most likely a bug with org-fold-catch-invisible-edits and
org-fold-check-before-invisible-edit.
And it is likely related to fontification code, which may be tricky.
I am the related maintainer :)
Best,
Ihor
Tor Kringeland <tor.kringeland@ntnu.no> writes:
> Most of the text will then be hidden, with "test" showing as a link, as
> expected. However if I remove the last ], the link highlighting
> disappears and only "test" is shown like regular text (/i.e./ instead of
> "[[123][test]" as would be expected). If I insert a character at the
> end or move the text, it is updated and "[[123][test]" shows as
> expected.
Fixed on main via 7c61a3a80.
Best,
Ihor