diff options
| author | Stefan Monnier | 2001-09-04 01:06:43 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2001-09-04 01:06:43 +0000 |
| commit | e5c60e46926b53bb907833e605c85f31f26fe3cd (patch) | |
| tree | d902fb5a4ef96640563357a9a47ed770ce8c4b16 | |
| parent | 31ac723b3940257494af1eca3afd2feaac5534e1 (diff) | |
| download | emacs-e5c60e46926b53bb907833e605c85f31f26fe3cd.tar.gz emacs-e5c60e46926b53bb907833e605c85f31f26fe3cd.zip | |
(describe-function-1): Save precomputed `file-name' rather
than recomputing it (incorrectly) with `symbol-file'.
| -rw-r--r-- | lisp/help.el | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/help.el b/lisp/help.el index c379fba1373..c05fcb47490 100644 --- a/lisp/help.el +++ b/lisp/help.el | |||
| @@ -710,15 +710,17 @@ 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 | 713 | (help-xref-button |
| 714 | 1 | 714 | 1 |
| 715 | #'(lambda (arg) | 715 | #'(lambda (fun file) |
| 716 | (require 'find-func) | 716 | (require 'find-func) |
| 717 | ;; Don't use find-function-noselect because it follows | ||
| 718 | ;; aliases (which fails for built-in functions). | ||
| 717 | (let* ((location (find-function-search-for-symbol | 719 | (let* ((location (find-function-search-for-symbol |
| 718 | arg nil (symbol-file arg)))) | 720 | fun nil file))) |
| 719 | (pop-to-buffer (car location)) | 721 | (pop-to-buffer (car location)) |
| 720 | (goto-char (cdr location)))) | 722 | (goto-char (cdr location)))) |
| 721 | function | 723 | (list function file-name) |
| 722 | "mouse-2, RET: find function's definition"))))) | 724 | "mouse-2, RET: find function's definition"))))) |
| 723 | (if need-close (princ ")")) | 725 | (if need-close (princ ")")) |
| 724 | (princ ".") | 726 | (princ ".") |