When I invoke M-x helpful-variable on any hook variable with a buffer-local value, helpful displays its buffer-local value, but no "Global Value" button to toggle its global value.

I find changing this line
|
(when (local-variable-if-set-p sym) |
To
(when (local-variable-if-set-p sym helpful--associated-buffer)
fixes the issue for me, but introduces another: once you toggle the global value of a hook, both "Buffer values" and "Global values" buttons disappear. No way to return to the buffer-local value without invoking helpful-variable from scratch.
Tested on Emacs 26.3 and 27.0.91 in vanilla and Doom Emacs, with the latest commit of helpful (c0662aa).
When I invoke
M-x helpful-variableon any hook variable with a buffer-local value, helpful displays its buffer-local value, but no "Global Value" button to toggle its global value.I find changing this line
helpful/helpful.el
Line 2190 in c0662aa
To
fixes the issue for me, but introduces another: once you toggle the global value of a hook, both "Buffer values" and "Global values" buttons disappear. No way to return to the buffer-local value without invoking helpful-variable from scratch.
Tested on Emacs 26.3 and 27.0.91 in vanilla and Doom Emacs, with the latest commit of helpful (c0662aa).