"J.D. Smith" <[email protected]> writes:

>> 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.
>
> Yeah I see: exactly the same ambiguity occurs "one level down".  How
> deeply can emphasis/links/etc. be nested?

In practice, down to max number of markup elements.
Potentially, infinitely, if we add inline special blocks.

> An idea to solve this that picks up on the new "topmost behavior": use
> two overlays.  The main overlay would cover the topmost entity and
> override the cursor-sensor to govern visibility and cursor type.  The
> second overlay would be brought in (if face appearance changes are
> requested) to modify the face for the /innermost/ entity at point.  In
> your example, you'd see `baz' underlined (only) when "inside" it,
> otherwise, the entire link would be underlined.

Sounds reasonable.
Changing faces is probably the most appropriate indicator in such
scenario. Also, revealing hidden markup symbols.
Cursor shape is harder to make intuitive.

> As far as the defaults, I've been using:
>
>  '(org-inside-appearance '(:cursor bar :face (:underline "magenta") :unhide 
> nil))
>
> for a few weeks and generally like it.  We'd need some appropriate org
> color or face.

One idea is inheriting from secondary-selection.

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