diff options
| -rw-r--r-- | lisp/help.el | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/help.el b/lisp/help.el index e1a65c79e85..b4d2cf5f4a6 100644 --- a/lisp/help.el +++ b/lisp/help.el | |||
| @@ -970,6 +970,8 @@ that." | |||
| 970 | (help-xref-button 1 #'describe-function sym))))) | 970 | (help-xref-button 1 #'describe-function sym))))) |
| 971 | ;; Look for commands in whole keymap substitutions: | 971 | ;; Look for commands in whole keymap substitutions: |
| 972 | (save-excursion | 972 | (save-excursion |
| 973 | ;; Make sure to find the first keymap. | ||
| 974 | (goto-char (point-min)) | ||
| 973 | ;; Find a header and the column at which the command | 975 | ;; Find a header and the column at which the command |
| 974 | ;; name will be found. | 976 | ;; name will be found. |
| 975 | (while (re-search-forward "^key +binding\n\\(-+ +\\)-+\n\n" | 977 | (while (re-search-forward "^key +binding\n\\(-+ +\\)-+\n\n" |
| @@ -1054,11 +1056,10 @@ help buffer." | |||
| 1054 | (defun help-follow-mouse (click) | 1056 | (defun help-follow-mouse (click) |
| 1055 | "Follow the cross-reference that you click on." | 1057 | "Follow the cross-reference that you click on." |
| 1056 | (interactive "e") | 1058 | (interactive "e") |
| 1057 | (save-excursion | 1059 | (let* ((start (event-start click)) |
| 1058 | (let* ((start (event-start click)) | 1060 | (window (car start)) |
| 1059 | (window (car start)) | 1061 | (pos (car (cdr start)))) |
| 1060 | (pos (car (cdr start)))) | 1062 | (with-current-buffer (window-buffer window) |
| 1061 | (set-buffer (window-buffer window)) | ||
| 1062 | (help-follow pos)))) | 1063 | (help-follow pos)))) |
| 1063 | 1064 | ||
| 1064 | (defun help-xref-go-back (buffer) | 1065 | (defun help-xref-go-back (buffer) |