]> git.eshelyaron.com Git - emacs.git/commitdiff
(read_key_sequence): Properly reinitialize
authorKarl Heuer <kwzh@gnu.org>
Sun, 27 Jun 1999 21:21:31 +0000 (21:21 +0000)
committerKarl Heuer <kwzh@gnu.org>
Sun, 27 Jun 1999 21:21:31 +0000 (21:21 +0000)
fkey_map after translating thru Vkey_translation_map.
After translating thru Vfunction_key_map, don't reset
keytrans-start to 0.

src/keyboard.c

index b1a41d106a439d97117530be00fcb72bed94668e..78860dd649645e240b00f61210129185a5182904 100644 (file)
@@ -7490,8 +7490,10 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last,
                  fkey_start = fkey_end = t;
                  fkey_map = Vfunction_key_map;
 
-                 /* Do pass the results through key-translation-map.  */
-                 keytran_start = keytran_end = 0;
+                 /* Do pass the results through key-translation-map.
+                    But don't retranslate what key-translation-map
+                    has already translated.  */
+                 keytran_end = keytran_start;
                  keytran_map = Vkey_translation_map;
 
                  goto replay_sequence;
@@ -7607,7 +7609,7 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last,
                /* Don't pass the results of key-translation-map
                   through function-key-map.  */
                fkey_start = fkey_end = t;
-               fkey_map = Vkey_translation_map;
+               fkey_map = Vfunction_key_map;
 
                goto replay_sequence;
              }