emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug: org-toggle-link-display and org-hide-emphasis-markers [9.4 (9.4


From: Gustavo Barros
Subject: Re: Bug: org-toggle-link-display and org-hide-emphasis-markers [9.4 (9.4-44-g5272d9-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20201123/)]
Date: Sat, 01 May 2021 17:41:08 -0300
User-agent: mu4e 1.4.15; emacs 27.2

Hi Bastien,

On Sat, 01 May 2021 at 13:42, Bastien <bzg@gnu.org> wrote:

Hi Gustavo,

Gustavo Barros <gusbrs.2016@gmail.com> writes:

when using `org-hide-emphasis-markers', making links visible with `org-toggle-link-display' also unhides the emphasis markers. I believe this to be unexpected behavior (it certainly is to me), but I might be wrong here, given that the emphasis markers are explicitly set to a `org-link' invisible property (which see).

thanks for reporting this, I've committed 842ab092a in maint which
should fix it.


Thank you for looking into this, and for the fix.

I hope the change does not break anyone's code: perhaps some people
use custom code to hide/show emphasis markers based on the org-link
invisible property specs.
In any case, I don't think `org-toggle-link-display' should display
emphasis markers.

I'm not sure either. Perhaps that was the reason why `org-link' was used as the invisibility property there in the first place. If you think that is a concern, perhaps adding something as `org-emph' to the invisibility specs and using it there instead of leaving the markers in the default group might be a good idea. This way it would be possible to toggle the markers selectively, as it is done with the links. I'm not sure this is granted, but one reasonable hypothesis why `org-link' was used there in the first place is that some degree of selective toggling of the markers was somehow demanded.

Best,
Gustavo.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]