]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/keyboard.c: Make xterm-mouse clicks on mode-line work
authorOlaf Rogalsky <olaf.rogalsky@t-online.de>
Sun, 19 Nov 2017 04:23:58 +0000 (23:23 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 19 Nov 2017 04:23:58 +0000 (23:23 -0500)
(read_key_sequence): Recompute first_event
after replay_sequence, since it might have changed (bug#29104).

src/keyboard.c

index 57757cf21123f5676d6eb1fbc1cd3bb9c1794736..f32b1560133c901b6e08a298911b7adede1eae59 100644 (file)
@@ -8916,7 +8916,6 @@ read_key_sequence (Lisp_Object *keybuf, int bufsize, Lisp_Object prompt,
   ptrdiff_t keys_start;
 
   Lisp_Object current_binding = Qnil;
-  Lisp_Object first_event = Qnil;
 
   /* Index of the first key that has no binding.
      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,
 
   starting_buffer = current_buffer;
   first_unbound = bufsize + 1;
+  Lisp_Object first_event = mock_input > 0 ? keybuf[0] : Qnil;
 
   /* Build our list of keymaps.
      If we recognize a function key and replace its escape sequence in