[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch: Info-mode bindings for forward and back mouse buttons
From: |
Teddy Hogeborn |
Subject: |
Patch: Info-mode bindings for forward and back mouse buttons |
Date: |
Tue, 20 Mar 2007 21:14:31 +0100 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
When using a common type of mouse with two normal buttons, a scroll
wheel, and two side thumb buttons for "forward" and "back", the last
two buttons are not bound in Info-mode. Patch below.
(As the buttons are not currently bound to anything, I assume that it
is not crucial to make absolutely sure that mouse-6 and mouse-7 have
no other meaning on some other type of mouse.)
Someone might argue that this should instead be part of mwheel.el, and
I have no opinion on that, as long as the buttons work by default.
/Teddy
Index: lisp/info.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/info.el,v
retrieving revision 1.497
diff -c -r1.497 info.el
*** lisp/info.el 10 Feb 2007 11:10:49 -0000 1.497
--- lisp/info.el 20 Mar 2007 20:07:17 -0000
***************
*** 3173,3178 ****
--- 3173,3180 ----
(define-key Info-mode-map "," 'Info-index-next)
(define-key Info-mode-map "\177" 'Info-scroll-down)
(define-key Info-mode-map [mouse-2] 'Info-mouse-follow-nearest-node)
+ (define-key Info-mode-map [mouse-6] 'Info-history-forward)
+ (define-key Info-mode-map [mouse-7] 'Info-history-back)
(define-key Info-mode-map [follow-link] 'mouse-face)
)
- Patch: Info-mode bindings for forward and back mouse buttons,
Teddy Hogeborn <=