mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-03 14:10:47 -08:00
(describe-function-1): Use
find-function-search-for-symbol instead of find-functin-noselect because the latter follows aliases.
This commit is contained in:
parent
61869b99b4
commit
c106884743
1 changed files with 10 additions and 7 deletions
17
lisp/help.el
17
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue