Skip to content

helpful-variable doesn't show a "Global Values" toggle for local hooks #242

Description

@hlissner

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.

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions