commit 927f7d3682bf772f35cd1541ef2526f48167f0ab
parent d1e74fd1e2cfaf200ef1105b33926805d39c9122
Author: Wilfred Hughes <me@wilfred.me.uk>
Date: Mon, 18 Jun 2018 22:10:23 +0100
Update changelog and tweak comment to match
Don't confuse buffer-local variables in general with specific file
variables.
Diffstat:
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
@@ -5,6 +5,9 @@ was only referenced in `minor-mode-map-alist`.
Fixed a crash when minor modes had invalid keymaps.
+Fixed an issue with `helpful-variable` where the user was pointlessly
+prompted about file variables.
+
# v0.10
When visiting a reference, the occurrences of the symbol are
diff --git a/helpful.el b/helpful.el
@@ -1009,9 +1009,9 @@ buffer."
(buf nil)
(pos nil)
(opened nil)
- ;; If we end up opening a buffer, don't bother with
- ;; buffer-local variables. It prompts the user and we discard
- ;; the buffer afterwards anyway.
+ ;; If we end up opening a buffer, don't bother with file
+ ;; variables. It prompts the user, and we discard the buffer
+ ;; afterwards anyway.
(enable-local-variables nil))
(when (and (symbolp sym) callable-p)
(-let [(_ . src-path) (find-function-library sym)]