summaryrefslogtreecommitdiff
path: root/lisp/help.el
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2001-08-06 14:28:36 +0000
committerGerd Moellmann <gerd@gnu.org>2001-08-06 14:28:36 +0000
commitc106884743bcaffcdb29b4d89aaec38c4ca63ea3 (patch)
treec348ee9e37e0354d435398985f961019e4287389 /lisp/help.el
parent61869b99b4427d36cb02763d9bd8c97436e20b0c (diff)
downloademacs-c106884743bcaffcdb29b4d89aaec38c4ca63ea3.tar.gz
(describe-function-1): Use
find-function-search-for-symbol instead of find-functin-noselect because the latter follows aliases.
Diffstat (limited to 'lisp/help.el')
-rw-r--r--lisp/help.el17
1 files changed, 10 insertions, 7 deletions
diff --git a/lisp/help.el b/lisp/help.el
index be391914692..c379fba1373 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -710,13 +710,16 @@ It can also be nil, if the definition is not associated with any file."
(with-current-buffer "*Help*"
(save-excursion
(re-search-backward "`\\([^`']+\\)'" nil t)
- (help-xref-button 1 #'(lambda (arg)
- (let ((location
- (find-function-noselect arg)))
- (pop-to-buffer (car location))
- (goto-char (cdr location))))
- function
- "mouse-2, RET: find function's definition")))))
+ (help-xref-button
+ 1
+ #'(lambda (arg)
+ (require 'find-func)
+ (let* ((location (find-function-search-for-symbol
+ arg nil (symbol-file arg))))
+ (pop-to-buffer (car location))
+ (goto-char (cdr location))))
+ function
+ "mouse-2, RET: find function's definition")))))
(if need-close (princ ")"))
(princ ".")
(terpri)