aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa1999-12-15 00:05:19 +0000
committerKenichi Handa1999-12-15 00:05:19 +0000
commite55d9cfd36f5cb983159968cd059626f82616a05 (patch)
tree1151a20cc73049f2b1de200dd2e41eb714515d61 /src
parent99529c2c73b5de1b887f6c0d95fab016821dff52 (diff)
downloademacs-e55d9cfd36f5cb983159968cd059626f82616a05.tar.gz
emacs-e55d9cfd36f5cb983159968cd059626f82616a05.zip
(internal_self_insert): Adjusted for the change of
CHAR_STRING.
Diffstat (limited to 'src')
-rw-r--r--src/cmds.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/cmds.c b/src/cmds.c
index 721575709ce..27d6812d05f 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -344,7 +344,7 @@ internal_self_insert (c, noautofill)
344 /* Length of multi-byte form of C. */ 344 /* Length of multi-byte form of C. */
345 int len; 345 int len;
346 /* Working buffer and pointer for multi-byte form of C. */ 346 /* Working buffer and pointer for multi-byte form of C. */
347 unsigned char workbuf[4], *str; 347 unsigned char str[MAX_MULTIBYTE_LENGTH];
348 int chars_to_delete = 0; 348 int chars_to_delete = 0;
349 int spaces_to_insert = 0; 349 int spaces_to_insert = 0;
350 350
@@ -357,7 +357,7 @@ internal_self_insert (c, noautofill)
357 if (!NILP (current_buffer->enable_multibyte_characters)) 357 if (!NILP (current_buffer->enable_multibyte_characters))
358 { 358 {
359 c = unibyte_char_to_multibyte (c); 359 c = unibyte_char_to_multibyte (c);
360 len = CHAR_STRING (c, workbuf, str); 360 len = CHAR_STRING (c, str);
361 if (len == 1) 361 if (len == 1)
362 /* If C has modifier bits, this makes C an appropriate 362 /* If C has modifier bits, this makes C an appropriate
363 one-byte char. */ 363 one-byte char. */
@@ -365,10 +365,9 @@ internal_self_insert (c, noautofill)
365 } 365 }
366 else 366 else
367 { 367 {
368 workbuf[0] = (SINGLE_BYTE_CHAR_P (c) 368 str[0] = (SINGLE_BYTE_CHAR_P (c)
369 ? c 369 ? c
370 : multibyte_char_to_unibyte (c, Qnil)); 370 : multibyte_char_to_unibyte (c, Qnil));
371 str = workbuf;
372 len = 1; 371 len = 1;
373 } 372 }
374 if (!NILP (overwrite) 373 if (!NILP (overwrite)