diff options
| author | Olaf Rogalsky | 2017-11-20 12:47:21 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2017-11-20 12:47:39 -0500 |
| commit | 51a5ccbe850da9fa5b58cee169fd5dbe8917f4e7 (patch) | |
| tree | 4b3af99cc92599182dea84e3aa46714993bcc1b8 | |
| parent | 369c67a6bba8ec36d9b2f29413848f5898a9e1ea (diff) | |
| download | emacs-51a5ccbe850da9fa5b58cee169fd5dbe8917f4e7.tar.gz emacs-51a5ccbe850da9fa5b58cee169fd5dbe8917f4e7.zip | |
* src/keyboard.c: Make xterm-mouse clicks on mode-line work
Copyright-paperwork-exempt: yes
(read_key_sequence): Recompute first_event
after replay_sequence, since it might have changed (bug#29104).
| -rw-r--r-- | src/keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 399149ae978..6b7a6bfa743 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -8919,7 +8919,6 @@ read_key_sequence (Lisp_Object *keybuf, int bufsize, Lisp_Object prompt, | |||
| 8919 | ptrdiff_t keys_start; | 8919 | ptrdiff_t keys_start; |
| 8920 | 8920 | ||
| 8921 | Lisp_Object current_binding = Qnil; | 8921 | Lisp_Object current_binding = Qnil; |
| 8922 | Lisp_Object first_event = Qnil; | ||
| 8923 | 8922 | ||
| 8924 | /* Index of the first key that has no binding. | 8923 | /* Index of the first key that has no binding. |
| 8925 | It is useless to try fkey.start larger than that. */ | 8924 | It is useless to try fkey.start larger than that. */ |
| @@ -9029,6 +9028,7 @@ read_key_sequence (Lisp_Object *keybuf, int bufsize, Lisp_Object prompt, | |||
| 9029 | 9028 | ||
| 9030 | starting_buffer = current_buffer; | 9029 | starting_buffer = current_buffer; |
| 9031 | first_unbound = bufsize + 1; | 9030 | first_unbound = bufsize + 1; |
| 9031 | Lisp_Object first_event = mock_input > 0 ? keybuf[0] : Qnil; | ||
| 9032 | 9032 | ||
| 9033 | /* Build our list of keymaps. | 9033 | /* Build our list of keymaps. |
| 9034 | If we recognize a function key and replace its escape sequence in | 9034 | If we recognize a function key and replace its escape sequence in |