+2006-09-23 Chong Yidong <cyd@stupidchicken.com>
+
+ * help.el (describe-key-briefly, describe-key): Don't expect an
+ extra up event if a down-event is generated by a popup menu.
+
2006-09-23 Michal Nazarewicz <mnazarewicz@gmail.com> (tiny change)
* textmodes/ispell.el (ispell-change-dictionary): Don't check the
;; event then is in the second element of the vector.
(and (vectorp key)
(or (and (eventp (aref key 0))
- (memq 'down (event-modifiers (aref key 0))))
+ (memq 'down (event-modifiers (aref key 0)))
+ ;; However, for the C-down-mouse-2 popup
+ ;; menu, there is no subsequent up-event. In
+ ;; this case, the up-event is the next
+ ;; element in the supplied vector.
+ (= (length key) 1))
(and (> (length key) 1)
(eventp (aref key 1))
(memq 'down (event-modifiers (aref key 1)))))
;; and use it as the third argument.
(and (vectorp key)
(or (and (eventp (aref key 0))
- (memq 'down (event-modifiers (aref key 0))))
+ (memq 'down (event-modifiers (aref key 0)))
+ ;; However, for the C-down-mouse-2 popup
+ ;; menu, there is no subsequent up-event. In
+ ;; this case, the up-event is the next
+ ;; element in the supplied vector.
+ (= (length key) 1))
(and (> (length key) 1)
(eventp (aref key 1))
(memq 'down (event-modifiers (aref key 1)))))