]> git.eshelyaron.com Git - emacs.git/commitdiff
(read_char): Save and restore echo_string when
authorKim F. Storm <storm@cua.dk>
Wed, 15 Dec 2004 00:07:15 +0000 (00:07 +0000)
committerKim F. Storm <storm@cua.dk>
Wed, 15 Dec 2004 00:07:15 +0000 (00:07 +0000)
handling input method.

src/keyboard.c

index b1f8a55507d04ad54dfb4afa501b754f56480dc8..95de9c2c6ade67188cac226761aa4d6d3642df5d 100644 (file)
@@ -3044,6 +3044,7 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu)
       /* Save the echo status.  */
       int saved_immediate_echo = current_kboard->immediate_echo;
       struct kboard *saved_ok_to_echo = ok_to_echo_at_next_pause;
+      Lisp_Object saved_echo_string = current_kboard->echo_string;
       int saved_echo_after_prompt = current_kboard->echo_after_prompt;
 
 #if 0
@@ -3098,6 +3099,7 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu)
 
       cancel_echoing ();
       ok_to_echo_at_next_pause = saved_ok_to_echo;
+      current_kboard->echo_string = saved_echo_string;
       current_kboard->echo_after_prompt = saved_echo_after_prompt;
       if (saved_immediate_echo)
        echo_now ();