commit 66ba816b26b68dd7df08e86f8b96eaae16c8d6a2
parent c57ff0d284b50ff430fe1f13fd48deaa0d1a910e
Author: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
Date: Sun, 10 Sep 2023 00:36:58 +0100
fix nil pos when building button for vars
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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