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.

I have played a bit with nested emphasis like
[[foo][bar *baz* az]] and the defaults can make things a bit confusing
when editing the link description. Maybe there should be several cursor
shapes depending on the depth level? Although it is probably going to be 
confusing.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to