aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa1998-03-03 01:29:16 +0000
committerKenichi Handa1998-03-03 01:29:16 +0000
commitb98590074d53c9b510e344bc81d5ae47ceb8abfa (patch)
tree0e99aee2c87e768f674dcb352bf9a95e28f85cbd /src
parent3b2d77fe297f6e177b95573601fe723117dbd78a (diff)
downloademacs-b98590074d53c9b510e344bc81d5ae47ceb8abfa.tar.gz
emacs-b98590074d53c9b510e344bc81d5ae47ceb8abfa.zip
(internal_self_insert): Avoid checking enable-multibyte-characters
twice.
Diffstat (limited to 'src')
-rw-r--r--src/cmds.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmds.c b/src/cmds.c
index ba7745ac814..cd814e6f706 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -342,9 +342,6 @@ internal_self_insert (c, noautofill)
342 int chars_to_delete = 0; 342 int chars_to_delete = 0;
343 int spaces_to_insert = 0; 343 int spaces_to_insert = 0;
344 344
345 if (! NILP (current_buffer->enable_multibyte_characters))
346 c = unibyte_char_to_multibyte (c);
347
348 overwrite = current_buffer->overwrite_mode; 345 overwrite = current_buffer->overwrite_mode;
349 if (!NILP (Vbefore_change_function) || !NILP (Vafter_change_function) 346 if (!NILP (Vbefore_change_function) || !NILP (Vafter_change_function)
350 || !NILP (Vbefore_change_functions) || !NILP (Vafter_change_functions)) 347 || !NILP (Vbefore_change_functions) || !NILP (Vafter_change_functions))
@@ -352,7 +349,10 @@ internal_self_insert (c, noautofill)
352 349
353 /* At first, get multi-byte form of C in STR. */ 350 /* At first, get multi-byte form of C in STR. */
354 if (!NILP (current_buffer->enable_multibyte_characters)) 351 if (!NILP (current_buffer->enable_multibyte_characters))
355 len = CHAR_STRING (c, workbuf, str); 352 {
353 c = unibyte_char_to_multibyte (c);
354 len = CHAR_STRING (c, workbuf, str);
355 }
356 else 356 else
357 workbuf[0] = c, str = workbuf, len = 1; 357 workbuf[0] = c, str = workbuf, len = 1;
358 358