* msb.el (msb): If EVENT is a down event, read and discard the up

event.
This commit is contained in:
Chong Yidong
2006-05-02 19:27:09 +00:00
parent 4f308f7304
commit 72fa72acd8
2 changed files with 10 additions and 0 deletions

View 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

View 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))