Please find branch feature/org-inside, which implements a new minor mode
to assist with precise editing of hidden-marker-wrapped text —
`org-inside-mode'. This mode changes the appearance when point is
inside hidden markers text (for now, just `org-emphasis'), relieving the
ambiguity when point is adjacent to such text.
Appearance change options include:
- Changing the cursor type (e.g. box to bar).
- Temporarily un-hiding the hidden markers (à la `org-appear').
- Altering the face of the wrapped text itself (e.g. a special color
`:underline').
These options can be combined freely. The mode uses
`cursor-sensor-functions', applied via font-lock, and a lazily created
per-window overlay for unhiding/face alterations. An additional hook
`org-do-emphasis-hook' and a list of properties to clear
`org-extra-unfontify-properties' support this from org's font-lock side.
Give a try; feedback welcome. One question is if this should be
targeted for v31 only, in which case the
`window-buffer-change-functions' are simpler.
JD