diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-11-02 17:20:55 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-11-02 17:20:55 +0000 |
commit | 6ae792434741744db46754837cb2a3d907c1ce84 (patch) | |
tree | dd97a1268a5682b58c888a8e5b28fe9d1b0d191e /src | |
parent | 02f02a9cf727284f256fbf899c6fd38722c53ef2 (diff) | |
download | emacs-6ae792434741744db46754837cb2a3d907c1ce84.tar.gz |
(command_loop_1): Update selected buffer again after read_key_sequence.
Diffstat (limited to 'src')
-rw-r--r-- | src/keyboard.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index ad5c2492ccb..e23034e4d56 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -1179,6 +1179,10 @@ command_loop_1 () 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, |