aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOlaf Rogalsky2017-11-18 23:23:58 -0500
committerStefan Monnier2017-11-18 23:23:58 -0500
commit18b235941109ab9e7a405cbe950886c97e897e11 (patch)
tree940eb2a952d30f588c25faede5ba881fcb1f1ca0 /src
parent6e6bf60eab1e921605064e3d39ea080639f8e0f6 (diff)
downloademacs-18b235941109ab9e7a405cbe950886c97e897e11.tar.gz
emacs-18b235941109ab9e7a405cbe950886c97e897e11.zip
* src/keyboard.c: Make xterm-mouse clicks on mode-line work
(read_key_sequence): Recompute first_event after replay_sequence, since it might have changed (bug#29104).
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 57757cf2112..f32b1560133 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -8916,7 +8916,6 @@ read_key_sequence (Lisp_Object *keybuf, int bufsize, Lisp_Object prompt,
8916 ptrdiff_t keys_start; 8916 ptrdiff_t keys_start;
8917 8917
8918 Lisp_Object current_binding = Qnil; 8918 Lisp_Object current_binding = Qnil;
8919 Lisp_Object first_event = Qnil;
8920 8919
8921 /* Index of the first key that has no binding. 8920 /* Index of the first key that has no binding.
8922 It is useless to try fkey.start larger than that. */ 8921 It is useless to try fkey.start larger than that. */
@@ -9026,6 +9025,7 @@ read_key_sequence (Lisp_Object *keybuf, int bufsize, Lisp_Object prompt,
9026 9025
9027 starting_buffer = current_buffer; 9026 starting_buffer = current_buffer;
9028 first_unbound = bufsize + 1; 9027 first_unbound = bufsize + 1;
9028 Lisp_Object first_event = mock_input > 0 ? keybuf[0] : Qnil;
9029 9029
9030 /* Build our list of keymaps. 9030 /* Build our list of keymaps.
9031 If we recognize a function key and replace its escape sequence in 9031 If we recognize a function key and replace its escape sequence in