Commit 094d9789 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(read_minibuf): Set the multibyteness of the

minibuffer before inserting `initial' string.
parent 716490f0
......@@ -370,6 +370,10 @@ read_minibuf (map, initial, prompt, backup_n, expflag,
unbind_to (count1, Qnil);
}
/* If appropriate, copy enable-multibyte-characters into the minibuffer. */
if (inherit_input_method)
current_buffer->enable_multibyte_characters = enable_multibyte;
/* Put in the initial input. */
if (!NILP (initial))
{
......@@ -388,10 +392,6 @@ read_minibuf (map, initial, prompt, backup_n, expflag,
if (STRINGP (input_method) && !NILP (Ffboundp (Qactivate_input_method)))
call1 (Qactivate_input_method, input_method);
/* If appropriate, copy enable-multibyte-characters into the minibuffer. */
if (inherit_input_method)
current_buffer->enable_multibyte_characters = enable_multibyte;
if (!NILP (current_buffer->enable_multibyte_characters)
&& ! STRING_MULTIBYTE (minibuf_prompt))
minibuf_prompt = Fstring_make_multibyte (minibuf_prompt);
......
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