Jens Schmidt <[email protected]> writes:

> But here is another minor nit: When `org-inside-mode' is currently
> enabled with
>
>   org-inside-appearance == '(:cursor bar)
>
> and you're in an emphasized region AND at that time decide to
>
>   (setopt org-inside-appearance '(:face underline))
>
> then the cursor stays bar-shaped, even if you leave the currently
> emphasized region.  The same happens if you use `customize-variable'.
> Probably you should extend the `defcustom' on `org-inside-appearance'
> with some `:set'ter to avoid such effects?

True.  I had played with a custom-set.  The usual problem when you have
window-tied properties is that you then have to loop over all windows of
all frames and see if any are in need of refreshing.  I didn't know what
org usually does in this situation, so I left it out.  There is
`org-mode-restart', which suggests to me org doesn't do much "live
config" refreshing of buffers and windows.  Ihor please let me know if
you think a custom-set function is needed.

> Plus bonus points if your setter in the use case above not only disables
> the bar-shaped cursor, but also immediately underlines the emphasized
> region.  I think that would be what users would expect when they tweak
> that variable to see what the various appearances look like.

For now I've pushed a commit that checks current sensor location on mode
setup.  It can be expanded to work with a custom-set, depending on need.

Reply via email to