aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2006-12-09 17:41:14 +0000
committerChong Yidong2006-12-09 17:41:14 +0000
commit92280c32848aeb7d7a147f6dc92a93b78f6517bd (patch)
tree5a8838cabf1e4e69f4a2dd2e800887c0a547285f
parentc417f2a3c71d046957e9b53e668f39a4de60cb2c (diff)
downloademacs-92280c32848aeb7d7a147f6dc92a93b78f6517bd.tar.gz
emacs-92280c32848aeb7d7a147f6dc92a93b78f6517bd.zip
(mouse-sel-mode): Register mouse-2 as a click type.
-rw-r--r--lisp/mouse-sel.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/mouse-sel.el b/lisp/mouse-sel.el
index a1209f827f1..5c3e79ed807 100644
--- a/lisp/mouse-sel.el
+++ b/lisp/mouse-sel.el
@@ -244,6 +244,10 @@ primary selection and region."
244 :group 'mouse-sel 244 :group 'mouse-sel
245 (if mouse-sel-mode 245 (if mouse-sel-mode
246 (progn 246 (progn
247 ;; If mouse-2 has never been done by the user, initialize the
248 ;; `event-kind' property to ensure that `follow-link' clicks
249 ;; are interpreted correctly.
250 (put 'mouse-2 'event-kind 'mouse-click)
247 (add-hook 'x-lost-selection-functions 'mouse-sel-lost-selection-hook) 251 (add-hook 'x-lost-selection-functions 'mouse-sel-lost-selection-hook)
248 (when mouse-sel-default-bindings 252 (when mouse-sel-default-bindings
249 ;; Save original bindings and replace them with new ones. 253 ;; Save original bindings and replace them with new ones.