diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2011-04-09 22:10:52 -0400 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2011-04-09 22:10:52 -0400 |
commit | 3ad8bad03884c5e3a1609083973997abe1feeb8c (patch) | |
tree | 78802e7b1f552963cc7c343d0a8d8b4249cace89 /lisp/mouse.el | |
parent | 6395aab9034182b316869c56ee82241adb7a76eb (diff) | |
download | emacs-3ad8bad03884c5e3a1609083973997abe1feeb8c.tar.gz |
Handle deferred `event-kind' property when using unread-command-events.
* src/mouse.el (mouse-drag-mode-line-1): Make sure that if we push
mouse-2 into unread-command-events, it is interpreted correctly.
Diffstat (limited to 'lisp/mouse.el')
-rw-r--r-- | lisp/mouse.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el index bed4776c135..628f900e886 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el @@ -538,6 +538,9 @@ MODE-LINE-P non-nil means dragging a mode line; nil means a header line." ;; a `drag-mouse-1'. In any case `on-link' would have been nulled ;; above if there had been any significant mouse movement. (when (and on-link (eq 'mouse-1 (car-safe event))) + ;; If mouse-2 has never been done by the user, it doesn't + ;; have the necessary property to be interpreted correctly. + (put 'mouse-2 'event-kind 'mouse-click) (push (cons 'mouse-2 (cdr event)) unread-command-events)))))) (defun mouse-drag-mode-line (start-event) |