Mercurial > emacs
changeset 37742:c3dd00963b46
(read_key_sequence): Prevent generating a fake
prefix key twice.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 15 May 2001 13:37:45 +0000 |
parents | 7b449aec29d2 |
children | cfa03ea9adec |
files | src/keyboard.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/keyboard.c Tue May 15 13:16:59 2001 +0000 +++ b/src/keyboard.c Tue May 15 13:37:45 2001 +0000 @@ -8221,10 +8221,12 @@ window = POSN_WINDOW (EVENT_START (key)); posn = POSN_BUFFER_POSN (EVENT_START (key)); - if (CONSP (posn)) + if (CONSP (posn) + || (!NILP (fake_prefixed_keys) + && !NILP (Fmemq (key, fake_prefixed_keys)))) { - /* We're looking at the second event of a - sequence which we expanded before. Set + /* We're looking a second time at an event for which + we generated a fake prefix key. Set last_real_key_start appropriately. */ if (t > 0) last_real_key_start = t - 1;