aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/info.el
diff options
context:
space:
mode:
authorChong Yidong2012-07-08 16:26:21 +0800
committerChong Yidong2012-07-08 16:26:21 +0800
commit01ac65bd7c0df6c895bf18810ee5c8d24704681a (patch)
tree2c595fce43a388b9bee4aa461c894a3deaf6f08b /lisp/info.el
parentd75be97d549b7264098ff19f8941a0dd80bde080 (diff)
downloademacs-01ac65bd7c0df6c895bf18810ee5c8d24704681a.tar.gz
emacs-01ac65bd7c0df6c895bf18810ee5c8d24704681a.zip
Fix interaction of line-dragging with mouse-1-click-follows-link.
* lisp/mouse.el (mouse-drag-line): Rewrite the track-mouse loop. Implement the mouse-1-click-follows-link handling properly. * lisp/info.el (Info-link-keymap): Use follow-link mechanism for header-line links. Fixes: debbugs:374
Diffstat (limited to 'lisp/info.el')
-rw-r--r--lisp/info.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/info.el b/lisp/info.el
index 9a62bc23fd0..0afb3f01339 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -4361,9 +4361,9 @@ the variable `Info-file-list-for-emacs'."
4361 4361
4362(defvar Info-link-keymap 4362(defvar Info-link-keymap
4363 (let ((keymap (make-sparse-keymap))) 4363 (let ((keymap (make-sparse-keymap)))
4364 (define-key keymap [header-line mouse-1] 'Info-mouse-follow-link) 4364 (define-key keymap [header-line down-mouse-1] 'mouse-drag-header-line)
4365 (define-key keymap [header-line mouse-1] 'mouse-select-window)
4365 (define-key keymap [header-line mouse-2] 'Info-mouse-follow-link) 4366 (define-key keymap [header-line mouse-2] 'Info-mouse-follow-link)
4366 (define-key keymap [header-line down-mouse-1] 'ignore)
4367 (define-key keymap [mouse-2] 'Info-mouse-follow-link) 4367 (define-key keymap [mouse-2] 'Info-mouse-follow-link)
4368 (define-key keymap [follow-link] 'mouse-face) 4368 (define-key keymap [follow-link] 'mouse-face)
4369 keymap) 4369 keymap)