diff options
| author | Richard M. Stallman | 1998-05-07 05:30:07 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-05-07 05:30:07 +0000 |
| commit | 7dcf11272e666a6f1b9407998f234f3edaadf613 (patch) | |
| tree | 66454fee6d2b123894d189115aff106dc2f6e300 | |
| parent | 9e832d815b7031cc2031ed6b576241754bcc56b3 (diff) | |
| download | emacs-7dcf11272e666a6f1b9407998f234f3edaadf613.tar.gz emacs-7dcf11272e666a6f1b9407998f234f3edaadf613.zip | |
(describe-function-1): Use find-function-noselect instead of find-function.
| -rw-r--r-- | lisp/help.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/help.el b/lisp/help.el index 5911ec205fd..8a10d194ef6 100644 --- a/lisp/help.el +++ b/lisp/help.el | |||
| @@ -628,7 +628,12 @@ C-w Display information on absence of warranty for GNU Emacs." | |||
| 628 | (with-current-buffer "*Help*" | 628 | (with-current-buffer "*Help*" |
| 629 | (save-excursion | 629 | (save-excursion |
| 630 | (re-search-backward "`\\([^`']+\\)'" nil t) | 630 | (re-search-backward "`\\([^`']+\\)'" nil t) |
| 631 | (help-xref-button 1 #'find-function function))))) | 631 | (help-xref-button 1 #'(lambda (arg) |
| 632 | (let ((location | ||
| 633 | (find-function-noselect arg))) | ||
| 634 | (display-buffer (nth 0 location)) | ||
| 635 | (goto-char (nth 1 location)))) | ||
| 636 | function))))) | ||
| 632 | (if need-close (princ ")")) | 637 | (if need-close (princ ")")) |
| 633 | (princ ".") | 638 | (princ ".") |
| 634 | (terpri) | 639 | (terpri) |