]> git.eshelyaron.com Git - emacs.git/commitdiff
* msb.el (msb): If EVENT is a down event, read and discard the up
authorChong Yidong <cyd@stupidchicken.com>
Tue, 2 May 2006 19:27:09 +0000 (19:27 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 2 May 2006 19:27:09 +0000 (19:27 +0000)
event.

lisp/ChangeLog
lisp/msb.el

index 448e319cfc42d28081f220f98e9fd836dbf7b547..355fae2103a958220d1cd1dc8dec21ff5467924d 100644 (file)
@@ -1,3 +1,8 @@
+2006-05-02  Chong Yidong  <cyd@mit.edu>
+
+       * msb.el (msb): If EVENT is a down event, read and discard the up
+       event.
+
 2006-05-02  Reiner Steib  <Reiner.Steib@gmx.de>
 
        * startup.el (command-line-1): Refer to Lisp manual when
index 95cbfc85df49809444a744afca959c65e4caeabc..61ddce5dae01c902e20c2c070690d9ebfead2cfd 100644 (file)
@@ -473,6 +473,11 @@ selects that window.
 See the function `mouse-select-buffer' and the variable
 `msb-menu-cond' for more information about how the menus are split."
   (interactive "e")
+  ;; If EVENT is a down-event, read and discard the
+  ;; corresponding up-event.
+  (and (eventp event)
+       (memq 'down (event-modifiers event))
+       (read-event))
   (let ((old-window (selected-window))
        (window (posn-window (event-start event))))
     (unless (framep window) (select-window window))