aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2006-01-01 07:55:21 +0000
committerRichard M. Stallman2006-01-01 07:55:21 +0000
commitcbf090c4593aa130615d67ddc1ce70f44a9067ab (patch)
tree20e1e43b259810abb390adfdd1433123b366bf29
parentb20de1cd1c3c50c3ba74cc35fd2feb03927c36ff (diff)
downloademacs-cbf090c4593aa130615d67ddc1ce70f44a9067ab.tar.gz
emacs-cbf090c4593aa130615d67ddc1ce70f44a9067ab.zip
(mouse-drag-region-1): When following link via mouse-2,
put on event-kind property.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/mouse.el6
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 44dc14b1117..2e187fed24b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12006-01-01 Richard M. Stallman <rms@gnu.org>
2
3 * mouse.el (mouse-drag-region-1): When following link via mouse-2,
4 put on event-kind property.
5
12005-12-31 Chong Yidong <cyd@stupidchicken.com> 62005-12-31 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * custom.el (provide-theme): Ban `user' theme name. 8 * custom.el (provide-theme): Ban `user' theme name.
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 8f0fedf401e..ef655ba836f 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -1032,7 +1032,11 @@ at the same position."
1032 (select-window original-window) 1032 (select-window original-window)
1033 (if (or (vectorp on-link) (stringp on-link)) 1033 (if (or (vectorp on-link) (stringp on-link))
1034 (setq event (aref on-link 0)) 1034 (setq event (aref on-link 0))
1035 (setcar event 'mouse-2))) 1035 (setcar event 'mouse-2)
1036 ;; If this mouse click has never been done by
1037 ;; the user, it doesn't have the necessary
1038 ;; property to be interpreted correctly.
1039 (put 'mouse-2 'event-kind 'mouse-click)))
1036 (push event unread-command-events)))) 1040 (push event unread-command-events))))
1037 1041
1038 ;; Case where the end-event is not a cons cell (it's just a boring 1042 ;; Case where the end-event is not a cons cell (it's just a boring