]> git.eshelyaron.com Git - emacs.git/commitdiff
(read_key_sequence): Prevent generating a fake
authorGerd Moellmann <gerd@gnu.org>
Tue, 15 May 2001 13:37:45 +0000 (13:37 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 15 May 2001 13:37:45 +0000 (13:37 +0000)
prefix key twice.

src/keyboard.c

index 2a7216f3975b89f226a10d2933efa0f213e4c5e4..18c1f3e1e3a1e1ccaba81d95dfe8f038a4d3035f 100644 (file)
@@ -8221,10 +8221,12 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last,
              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;