]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/info.el (Info-link-keymap): Fix repetitive clicks on the header line.
authorJuri Linkov <juri@linkov.net>
Mon, 24 Jan 2022 18:52:59 +0000 (20:52 +0200)
committerJuri Linkov <juri@linkov.net>
Mon, 24 Jan 2022 18:54:54 +0000 (20:54 +0200)
Rebind [header-line mouse-1] from mouse-select-window to
Info-mouse-follow-link.  It selects the window anyway,
but also allows repetitively clicking on the Next button
on the Info header line (bug#53170).

lisp/info.el

index f4f0f9790cd1305994ff7cfb45b7cbe69920ba54..bb8cd0d312fae8794327459bdd183eaa5b404ae8 100644 (file)
@@ -4693,7 +4693,7 @@ the variable `Info-file-list-for-emacs'."
 (defvar Info-link-keymap
   (let ((keymap (make-sparse-keymap)))
     (define-key keymap [header-line down-mouse-1] 'mouse-drag-header-line)
-    (define-key keymap [header-line mouse-1] 'mouse-select-window)
+    (define-key keymap [header-line mouse-1] 'Info-mouse-follow-link)
     (define-key keymap [header-line mouse-2] 'Info-mouse-follow-link)
     (define-key keymap [mouse-2] 'Info-mouse-follow-link)
     (define-key keymap [follow-link] 'mouse-face)