aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Yuen Ho Wong <wyuenho@gmail.com>2023-09-10 00:36:58 +0100
committerWilfred Hughes <me@wilfred.me.uk>2023-09-11 08:47:35 -0700
commit66ba816b26b68dd7df08e86f8b96eaae16c8d6a2 (patch)
treee51cc7822983d9a155dcd1b077c2deb57a2ba7a4
parentc57ff0d284b50ff430fe1f13fd48deaa0d1a910e (diff)
fix nil pos when building button for vars
-rw-r--r--helpful.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpful.el b/helpful.el
index 8822aba..60049a2 100644
--- a/helpful.el
+++ b/helpful.el
@@ -1498,7 +1498,7 @@ buffer."
;; that.
(save-excursion
(condition-case _err
- (setq pos (cdr (find-variable-noselect sym 'defvar)))
+ (setq pos (cdr (find-variable-noselect sym library-name)))
(search-failed nil)
;; If your current Emacs instance doesn't match the source
;; code configured in find-function-C-source-directory, we can