]> git.eshelyaron.com Git - emacs.git/commitdiff
(mouse-sel-mode): Register mouse-2 as a click type.
authorChong Yidong <cyd@stupidchicken.com>
Sat, 9 Dec 2006 17:41:14 +0000 (17:41 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 9 Dec 2006 17:41:14 +0000 (17:41 +0000)
lisp/mouse-sel.el

index a1209f827f196ea0c2b20b69860af54dc6fc8fe1..5c3e79ed8077a5f4f9dd8cbf11c1235df08385d3 100644 (file)
@@ -244,6 +244,10 @@ primary selection and region."
   :group 'mouse-sel
   (if mouse-sel-mode
       (progn
+       ;; If mouse-2 has never been done by the user, initialize the
+       ;; `event-kind' property to ensure that `follow-link' clicks
+       ;; are interpreted correctly.
+       (put 'mouse-2 'event-kind 'mouse-click)
        (add-hook 'x-lost-selection-functions 'mouse-sel-lost-selection-hook)
        (when mouse-sel-default-bindings
          ;; Save original bindings and replace them with new ones.