Commit 81d89d88 authored by Oscar Fuentes's avatar Oscar Fuentes
Browse files

Fixes display of prefix argument when input-method-function

* keyboard.c (read_char): When there is an input method function,
do not restore the echo area if a prefix argument is being
introduced.  (Bug#19875)
parent 8338e442
2015-02-18 Oscar Fuentes <ofv@wanadoo.es>
* keyboard.c (read_char): When there is an input method function,
do not restore the echo area if a prefix argument is being
introduced. (Bug#19875)
2015-02-16 Kelly Dean <kelly@prtime.org>
 
* src/keyboard.c (timer_check_2): Fix incorrect comment.
......
......@@ -3095,7 +3095,14 @@ read_char (int commandflag, Lisp_Object map,
cancel_echoing ();
ok_to_echo_at_next_pause = saved_ok_to_echo;
kset_echo_string (current_kboard, saved_echo_string);
/* Do not restore the echo area string when the user is
introducing a prefix argument. Otherwise we end with
repetitions of the partially introduced prefix
argument. (bug#19875) */
if (NILP (intern ("prefix-arg")))
{
kset_echo_string (current_kboard, saved_echo_string);
}
current_kboard->echo_after_prompt = saved_echo_after_prompt;
if (saved_immediate_echo)
echo_now ();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment