mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
(describe-function-1): Save precomputed `file-name' rather
than recomputing it (incorrectly) with `symbol-file'.
This commit is contained in:
parent
31ac723b39
commit
e5c60e4692
12
lisp/help.el
12
lisp/help.el
@ -710,15 +710,17 @@ It can also be nil, if the definition is not associated with any file."
|
|||||||
(with-current-buffer "*Help*"
|
(with-current-buffer "*Help*"
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(re-search-backward "`\\([^`']+\\)'" nil t)
|
(re-search-backward "`\\([^`']+\\)'" nil t)
|
||||||
(help-xref-button
|
(help-xref-button
|
||||||
1
|
1
|
||||||
#'(lambda (arg)
|
#'(lambda (fun file)
|
||||||
(require 'find-func)
|
(require 'find-func)
|
||||||
|
;; Don't use find-function-noselect because it follows
|
||||||
|
;; aliases (which fails for built-in functions).
|
||||||
(let* ((location (find-function-search-for-symbol
|
(let* ((location (find-function-search-for-symbol
|
||||||
arg nil (symbol-file arg))))
|
fun nil file)))
|
||||||
(pop-to-buffer (car location))
|
(pop-to-buffer (car location))
|
||||||
(goto-char (cdr location))))
|
(goto-char (cdr location))))
|
||||||
function
|
(list function file-name)
|
||||||
"mouse-2, RET: find function's definition")))))
|
"mouse-2, RET: find function's definition")))))
|
||||||
(if need-close (princ ")"))
|
(if need-close (princ ")"))
|
||||||
(princ ".")
|
(princ ".")
|
||||||
|
Loading…
Reference in New Issue
Block a user