Ihor Radchenko <[email protected]> writes:

> "J.D. Smith" <[email protected]> writes:
>
>> Perhaps finding the *topmost* emphasis/link ancestor is the right
>> approach; can anyone recommend a way to do that?
>>
>> Currently using:
>>
>>   (when-let* ((ctx (org-element-context)))
>>       (org-element-lineage ctx '( link bold code italic verbatim
>>                                   underline strike-through) t))
>
> topmost makes sense, especially considering the cursor shape.
>
> org-element-lineage-map could be useful to find the topmost.

Thanks easy fix (pushed).  I also decided we could add toggle-hidden to
both hooks for now; see what you think.

Reply via email to