Subject: RE: [External] : Re: bug#60587: Patch for adding links to symbols' help documentation

From: Ihor Radchenko <[email-masked]>
Date: Thu, 26 Jan 2023 15:12:02 +0000

Drew Adams <[email-masked]> writes:

>> > 2. Instead of putting it on the hook when loading
>> > the code, add/remove it in a :set function.  E.g.
>> > (untested):...
>> >
>> > 3. Maybe add a toggle command for the option, so
>> > users can switch the behavior anytime, on the fly.
>> 
>> What about using `add-variable-watcher'?
>
> Did you mean for #2: when/where to add the function
> to the hook?  Or did you mean use a watcher instead
> of #3, a toggle command?

Both. Rather than searching for a dedicated "toggle" command, setting
the variable with then trigger the hook addition/removal.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
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>