diff options
author | Richard M. Stallman <rms@gnu.org> | 1998-06-10 00:27:04 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1998-06-10 00:27:04 +0000 |
commit | 9b49f910ae9471fa31d554a111ecb488bed4f2f0 (patch) | |
tree | 32be07ccfec972e51bd1f282c579802470080677 /lisp/help.el | |
parent | dc99d85edbd83301f6c1a14310287ec753bdac3d (diff) | |
download | emacs-9b49f910ae9471fa31d554a111ecb488bed4f2f0.tar.gz |
(help-make-xrefs): When scanning keymap binding listings,
scan from the very beginning.
(help-follow-mouse): Avoid save-excursion, so can set point properly.
Diffstat (limited to 'lisp/help.el')
-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." (help-xref-button 1 #'describe-function sym))))) ;; Look for commands in whole keymap substitutions: (save-excursion + ;; Make sure to find the first keymap. + (goto-char (point-min)) ;; Find a header and the column at which the command ;; name will be found. (while (re-search-forward "^key +binding\n\\(-+ +\\)-+\n\n" @@ -1054,11 +1056,10 @@ help buffer." (defun help-follow-mouse (click) "Follow the cross-reference that you click on." (interactive "e") - (save-excursion - (let* ((start (event-start click)) - (window (car start)) - (pos (car (cdr start)))) - (set-buffer (window-buffer window)) + (let* ((start (event-start click)) + (window (car start)) + (pos (car (cdr start)))) + (with-current-buffer (window-buffer window) (help-follow pos)))) (defun help-xref-go-back (buffer) |