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

>> The most conservative way is simply leaving this command up to users to
>> bind or add to the hook.
>
> Or make `org-inside' itself opt-in.  I remembered that
> `hide-emphasis-markers' is opt-in, but `link-descriptive' is /not/, so
> it's not clear what `org-inside' should be.  We have a few options:
>
>    | # | org-inside-mode on | C-c C-c bound |
>    |---+--------------------+---------------|
>    | 1 | NO                 | NO            |
>    | 2 | NO                 | YES           |
>    | 3 | YES                | NO            |
>    | 4 | YES                | YES           |
>
> I lean toward #2, but am OK with any.

I am leaning towards #3 or #4.

>> But I think adding to org-ctrl-c-ctrl-c-hook will be fine as long as
>> second C-c C-c will not trigger the hook anymore and proceed to next action.
>
> Not sure I understand your proposal.  Is the idea is to temporarily
> disable hide toggling from the C-c C-c hook after one invocation?  Won't
> that be surprising if you want to... toggle back?  I think the least
> surprising thing is to have hidden-marker entities "capture" C-c C-c
> when inside of them.

Right. I think there is no 100% the best way. It will all depend on the use
case and preferences. Let's not dwell too much on this.

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