Subject: bug#60587: Patch for adding links to symbols' help documentation

From: Stefan Monnier <[email-masked]>
Date: Fri, 27 Jan 2023 17:12:58 -0500

>> 3. Maybe add a toggle command for the option, so users can switch the
>> behavior anytime, on the fly.
>
> Like this?
>
> ;; TODO: add this toggle in info documentation and NEWS
> ;; TODO: remove and create buttons in current info buffer
> (defun info-toggle-make-xrefs ()
>   "Toggle creating Info buttons."
>   (interactive)
>   (if (memq 'info-make-xrefs Info-selection-hook)
>       (remove-hook 'Info-selection-hook 'info-make-xrefs)
>     (add-hook 'Info-selection-hook 'info-make-xrefs)
>     (message "Create Info link buttons to symbol names.")))

Make it a minor mode, then.  It's no more coding and it offers more
functionality and a more regular/familiar behavior.

        Stefan