changeset 16504:76d22a4f6959

(command_loop_1): Update selected buffer again after read_key_sequence.
author Richard M. Stallman <rms@gnu.org>
date Sat, 02 Nov 1996 17:20:55 +0000
parents ca9889de9c16
children 39efcea11aad
files src/keyboard.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Sat Nov 02 17:11:47 1996 +0000
+++ b/src/keyboard.c	Sat Nov 02 17:20:55 1996 +0000
@@ -1179,6 +1179,10 @@
       i = read_key_sequence (keybuf, sizeof keybuf / sizeof keybuf[0],
 			     Qnil, 0, 1);
 
+      /* A filter may have run while we were reading the input.  */
+      if (XBUFFER (XWINDOW (selected_window)->buffer) != current_buffer)
+	set_buffer_internal (XBUFFER (XWINDOW (selected_window)->buffer));
+
       ++num_input_keys;
 
       /* Now we have read a key sequence of length I,