Skip to content

Commit 280baa3

Browse files
committed
Showing global value whenever local-variable-if-set-p returns non-nil
1 parent 13b33e2 commit 280baa3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

helpful.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2283,7 +2283,7 @@ state of the current symbol."
22832283
(local-p (and
22842284
helpful--associated-buffer
22852285
(local-variable-p sym helpful--associated-buffer)))
2286-
(local-set-p (local-variable-if-set-p sym))
2286+
(local-set-p (local-variable-if-set-p sym helpful--associated-buffer))
22872287
(multiple-views-p
22882288
(or (stringp val)
22892289
(keymapp val)
@@ -2320,7 +2320,7 @@ state of the current symbol."
23202320
sym
23212321
(car (helpful--original-value sym)))
23222322
"\n\n"))
2323-
(when (and local-p (not local-set-p))
2323+
(when (or local-p (not local-set-p))
23242324
(insert
23252325
(helpful--heading "Global Value")
23262326
(helpful--format-value

0 commit comments

Comments
 (0)