diff options
| author | Chris Feng | 2017-11-08 00:39:43 +0800 |
|---|---|---|
| committer | Chris Feng | 2017-11-08 00:39:43 +0800 |
| commit | 1f3f4b1296613b8cdc0632a68fde86e86ddad866 (patch) | |
| tree | 4bf72904b16f3191209b4a5abcc41319110802dd /src | |
| parent | c6b95584fc888bf566d42847d78447ddea60972a (diff) | |
| download | emacs-1f3f4b1296613b8cdc0632a68fde86e86ddad866.tar.gz emacs-1f3f4b1296613b8cdc0632a68fde86e86ddad866.zip | |
Handle unread-command-events consistently (bug#23980)
* src/keyboard.c (read_char): Events put into `unread-command-events'
with the form (t . EVENT) should always have the t stripped when read
out.
* test/src/keyboard-tests.el: New tests for `unread-command-events'.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 7ddd6b96747..2c29a643011 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -2809,6 +2809,9 @@ read_char (int commandflag, Lisp_Object map, | |||
| 2809 | 2809 | ||
| 2810 | if (EQ (c, make_number (-2))) | 2810 | if (EQ (c, make_number (-2))) |
| 2811 | return c; | 2811 | return c; |
| 2812 | |||
| 2813 | if (CONSP (c) && EQ (XCAR (c), Qt)) | ||
| 2814 | c = XCDR (c); | ||
| 2812 | } | 2815 | } |
| 2813 | 2816 | ||
| 2814 | non_reread: | 2817 | non_reread: |