Skip to content

Commit

Permalink
Showing global value whenever local-variable-if-set-p returns non-nil
Browse files Browse the repository at this point in the history
  • Loading branch information
haji-ali committed Sep 11, 2024
1 parent 2198521 commit eef1f4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpful.el
Original file line number Diff line number Diff line change
Expand Up @@ -2259,7 +2259,7 @@ state of the current symbol."
(local-p (and
helpful--associated-buffer
(local-variable-p sym helpful--associated-buffer)))
(local-set-p (local-variable-if-set-p sym))
(local-set-p (local-variable-if-set-p sym helpful--associated-buffer))
(multiple-views-p
(or (stringp val)
(keymapp val)
Expand Down Expand Up @@ -2296,7 +2296,7 @@ state of the current symbol."
sym
(car (helpful--original-value sym)))
"\n\n"))
(when (and local-p (not local-set-p))
(when (or local-p (not local-set-p))
(insert
(helpful--heading "Global Value")
(helpful--format-value
Expand Down

0 comments on commit eef1f4e

Please sign in to comment.