Hi Bastien,
On Sat, 01 May 2021 at 13:42, Bastien <b...@gnu.org> wrote:
Hi Gustavo,
Gustavo Barros <gusbrs.2...@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.