summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xdisp.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index cc65fff9ae9..4eac7d54592 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -459,19 +459,19 @@ message2 (m, len)
message_log_maybe_newline ();
if (m)
message_dolog (m, len, 1);
- message2_nolog (m, len);
+ message2_nolog (m, len,
+ ! NILP (current_buffer->enable_multibyte_characters));
}
/* The non-logging counterpart of message2. */
void
-message2_nolog (m, len)
+message2_nolog (m, len, multibyte)
char *m;
int len;
{
- message_enable_multibyte
- = ! NILP (current_buffer->enable_multibyte_characters);
+ message_enable_multibyte = multibyte;
if (noninteractive)
{
@@ -542,7 +542,8 @@ void
message1_nolog (m)
char *m;
{
- message2_nolog (m, (m ? strlen (m) : 0));
+ message2_nolog (m, (m ? strlen (m) : 0),
+ ! NILP (current_buffer->enable_multibyte_characters));
}
/* Truncate what will be displayed in the echo area