emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] Editing link hides text
@ 2022-06-21  2:14 Tor Kringeland
  2022-06-21  2:20 ` Samuel Banya
  2022-06-21 12:28 ` Ihor Radchenko
  0 siblings, 2 replies; 4+ messages in thread
From: Tor Kringeland @ 2022-06-21  2:14 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [BUG] Editing link hides text
  2022-06-21  2:14 [BUG] Editing link hides text Tor Kringeland
@ 2022-06-21  2:20 ` Samuel Banya
  2022-06-21  2:28   ` Ihor Radchenko
  2022-06-21 12:28 ` Ihor Radchenko
  1 sibling, 1 reply; 4+ messages in thread
From: Samuel Banya @ 2022-06-21  2:20 UTC (permalink / raw)
  To: Charles Berry

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [BUG] Editing link hides text
  2022-06-21  2:20 ` Samuel Banya
@ 2022-06-21  2:28   ` Ihor Radchenko
  0 siblings, 0 replies; 4+ messages in thread
From: Ihor Radchenko @ 2022-06-21  2:28 UTC (permalink / raw)
  To: Samuel Banya; +Cc: Charles Berry

"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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [BUG] Editing link hides text
  2022-06-21  2:14 [BUG] Editing link hides text Tor Kringeland
  2022-06-21  2:20 ` Samuel Banya
@ 2022-06-21 12:28 ` Ihor Radchenko
  1 sibling, 0 replies; 4+ messages in thread
From: Ihor Radchenko @ 2022-06-21 12:28 UTC (permalink / raw)
  To: Tor Kringeland; +Cc: emacs-orgmode@gnu.org

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-06-21 12:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-21  2:14 [BUG] Editing link hides text Tor Kringeland
2022-06-21  2:20 ` Samuel Banya
2022-06-21  2:28   ` Ihor Radchenko
2022-06-21 12:28 ` Ihor Radchenko

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