diff options
| author | Chong Yidong | 2006-09-23 19:34:38 +0000 |
|---|---|---|
| committer | Chong Yidong | 2006-09-23 19:34:38 +0000 |
| commit | 98da283bf04e9b364ba4a39c9cf0d197a10cdab5 (patch) | |
| tree | dd14dab580f169d701b67f965b470afd4cdce6dd | |
| parent | abb67ad338c04e467adadec09562563701223393 (diff) | |
| download | emacs-98da283bf04e9b364ba4a39c9cf0d197a10cdab5.tar.gz emacs-98da283bf04e9b364ba4a39c9cf0d197a10cdab5.zip | |
* help.el (describe-key-briefly, describe-key): Don't expect an
extra up event if a down-event is generated by a popup menu.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/help.el | 14 |
2 files changed, 17 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8916311cde9..254546968c0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-09-23 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * help.el (describe-key-briefly, describe-key): Don't expect an | ||
| 4 | extra up event if a down-event is generated by a popup menu. | ||
| 5 | |||
| 1 | 2006-09-23 Michal Nazarewicz <mnazarewicz@gmail.com> (tiny change) | 6 | 2006-09-23 Michal Nazarewicz <mnazarewicz@gmail.com> (tiny change) |
| 2 | 7 | ||
| 3 | * textmodes/ispell.el (ispell-change-dictionary): Don't check the | 8 | * textmodes/ispell.el (ispell-change-dictionary): Don't check the |
diff --git a/lisp/help.el b/lisp/help.el index fafe6e57ed0..10ad5fe6deb 100644 --- a/lisp/help.el +++ b/lisp/help.el | |||
| @@ -572,7 +572,12 @@ temporarily enables it to allow getting help on disabled items and buttons." | |||
| 572 | ;; event then is in the second element of the vector. | 572 | ;; event then is in the second element of the vector. |
| 573 | (and (vectorp key) | 573 | (and (vectorp key) |
| 574 | (or (and (eventp (aref key 0)) | 574 | (or (and (eventp (aref key 0)) |
| 575 | (memq 'down (event-modifiers (aref key 0)))) | 575 | (memq 'down (event-modifiers (aref key 0))) |
| 576 | ;; However, for the C-down-mouse-2 popup | ||
| 577 | ;; menu, there is no subsequent up-event. In | ||
| 578 | ;; this case, the up-event is the next | ||
| 579 | ;; element in the supplied vector. | ||
| 580 | (= (length key) 1)) | ||
| 576 | (and (> (length key) 1) | 581 | (and (> (length key) 1) |
| 577 | (eventp (aref key 1)) | 582 | (eventp (aref key 1)) |
| 578 | (memq 'down (event-modifiers (aref key 1))))) | 583 | (memq 'down (event-modifiers (aref key 1))))) |
| @@ -647,7 +652,12 @@ temporarily enables it to allow getting help on disabled items and buttons." | |||
| 647 | ;; and use it as the third argument. | 652 | ;; and use it as the third argument. |
| 648 | (and (vectorp key) | 653 | (and (vectorp key) |
| 649 | (or (and (eventp (aref key 0)) | 654 | (or (and (eventp (aref key 0)) |
| 650 | (memq 'down (event-modifiers (aref key 0)))) | 655 | (memq 'down (event-modifiers (aref key 0))) |
| 656 | ;; However, for the C-down-mouse-2 popup | ||
| 657 | ;; menu, there is no subsequent up-event. In | ||
| 658 | ;; this case, the up-event is the next | ||
| 659 | ;; element in the supplied vector. | ||
| 660 | (= (length key) 1)) | ||
| 651 | (and (> (length key) 1) | 661 | (and (> (length key) 1) |
| 652 | (eventp (aref key 1)) | 662 | (eventp (aref key 1)) |
| 653 | (memq 'down (event-modifiers (aref key 1))))) | 663 | (memq 'down (event-modifiers (aref key 1))))) |