diff options
| author | Richard M. Stallman | 1995-11-24 22:42:19 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-11-24 22:42:19 +0000 |
| commit | 2479e91e2c1eec84c64de8ca279c77f2b10eb564 (patch) | |
| tree | 37cf775bf8e9338a8f5c093c3c06d0822e877a7e /src/keyboard.c | |
| parent | 954080b438d53cde505a5fdb9bc3e972bd88510e (diff) | |
| download | emacs-2479e91e2c1eec84c64de8ca279c77f2b10eb564.tar.gz emacs-2479e91e2c1eec84c64de8ca279c77f2b10eb564.zip | |
(read_char): Handle unread events from popup menus.
Diffstat (limited to 'src/keyboard.c')
| -rw-r--r-- | src/keyboard.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 74614ce2f10..04291a24105 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -1700,6 +1700,13 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 1700 | c = XCONS (Vunread_command_events)->car; | 1700 | c = XCONS (Vunread_command_events)->car; |
| 1701 | Vunread_command_events = XCONS (Vunread_command_events)->cdr; | 1701 | Vunread_command_events = XCONS (Vunread_command_events)->cdr; |
| 1702 | 1702 | ||
| 1703 | /* Undo what read_char_x_menu_prompt did when it unread | ||
| 1704 | additional keys returned by Fx_popup_menu. */ | ||
| 1705 | if (CONSP (c) | ||
| 1706 | && (SYMBOLP (XCONS (c)->car) || INTEGERP (XCONS (c)->car)) | ||
| 1707 | && NILP (XCONS (c)->cdr)) | ||
| 1708 | c = XCONS (c)->car; | ||
| 1709 | |||
| 1703 | if (this_command_key_count == 0) | 1710 | if (this_command_key_count == 0) |
| 1704 | goto reread_first; | 1711 | goto reread_first; |
| 1705 | else | 1712 | else |