]> git.eshelyaron.com Git - emacs.git/commitdiff
* help.el (describe-key-briefly): If KEY is a down event, read and
authorChong Yidong <cyd@stupidchicken.com>
Tue, 7 Mar 2006 15:53:41 +0000 (15:53 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 7 Mar 2006 15:53:41 +0000 (15:53 +0000)
discard the up event.

lisp/ChangeLog
lisp/help.el

index c7c2661b2a9b39abc98ee465496603e1b50bd3f5..18fa97f0d2016890b2d2e456efab1cdfe3cc7254 100644 (file)
@@ -1,3 +1,8 @@
+2006-03-07  Chong Yidong  <cyd@stupidchicken.com>
+
+       * help.el (describe-key-briefly): If KEY is a down event, read and
+       discard the up event.
+
 2006-03-07  Nick Roberts  <nickrob@snap.net.nz>
 
        * progmodes/gud.el (gud-speedbar-buttons): Allow pointers to
index 7c84f44f6a086fdf53ad52bb7f848ebc75d52fbe..a39d344dc048ff3c9f92048480121f63dbcf3e31 100644 (file)
@@ -577,6 +577,12 @@ temporarily enables it to allow getting help on disabled items and buttons."
             (setq saved-yank-menu (copy-sequence yank-menu))
             (menu-bar-update-yank-menu "(any string)" nil))
           (setq key (read-key-sequence "Describe key (or click or menu item): "))
+          ;; If KEY is a down-event, read and discard the
+          ;; corresponding up-event.
+          (if (and (vectorp key)
+                   (eventp (elt key 0))
+                   (memq 'down (event-modifiers (elt key 0))))
+              (read-event))
           (list
            key
            (if current-prefix-arg (prefix-numeric-value current-prefix-arg))