aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGerd Moellmann2001-08-06 14:28:36 +0000
committerGerd Moellmann2001-08-06 14:28:36 +0000
commitc106884743bcaffcdb29b4d89aaec38c4ca63ea3 (patch)
treec348ee9e37e0354d435398985f961019e4287389 /lisp
parent61869b99b4427d36cb02763d9bd8c97436e20b0c (diff)
downloademacs-c106884743bcaffcdb29b4d89aaec38c4ca63ea3.tar.gz
emacs-c106884743bcaffcdb29b4d89aaec38c4ca63ea3.zip
(describe-function-1): Use
find-function-search-for-symbol instead of find-functin-noselect because the latter follows aliases.
Diffstat (limited to 'lisp')
-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."
710 (with-current-buffer "*Help*" 710 (with-current-buffer "*Help*"
711 (save-excursion 711 (save-excursion
712 (re-search-backward "`\\([^`']+\\)'" nil t) 712 (re-search-backward "`\\([^`']+\\)'" nil t)
713 (help-xref-button 1 #'(lambda (arg) 713 (help-xref-button
714 (let ((location 714 1
715 (find-function-noselect arg))) 715 #'(lambda (arg)
716 (pop-to-buffer (car location)) 716 (require 'find-func)
717 (goto-char (cdr location)))) 717 (let* ((location (find-function-search-for-symbol
718 function 718 arg nil (symbol-file arg))))
719 "mouse-2, RET: find function's definition"))))) 719 (pop-to-buffer (car location))
720 (goto-char (cdr location))))
721 function
722 "mouse-2, RET: find function's definition")))))
720 (if need-close (princ ")")) 723 (if need-close (princ ")"))
721 (princ ".") 724 (princ ".")
722 (terpri) 725 (terpri)