aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2002-09-03 04:06:07 +0000
committerKenichi Handa2002-09-03 04:06:07 +0000
commit1464b3d8a8daa491d146bdf88ffb1fc73ee6422e (patch)
treec4ddf4b2e1176b55ff44e0623042328b933ef83f
parentf2e7bcef4d8f446e49513b7a403426881d81842b (diff)
downloademacs-1464b3d8a8daa491d146bdf88ffb1fc73ee6422e.tar.gz
emacs-1464b3d8a8daa491d146bdf88ffb1fc73ee6422e.zip
(Fexpand_abbrev): Convert a unibyte character to
multibyte if necessary.
-rw-r--r--src/abbrev.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/abbrev.c b/src/abbrev.c
index 64989b40553..7ba0f575a2d 100644
--- a/src/abbrev.c
+++ b/src/abbrev.c
@@ -295,9 +295,7 @@ Returns the abbrev symbol, if expansion took place. */)
295 295
296 FETCH_CHAR_ADVANCE (c, idx, idx_byte); 296 FETCH_CHAR_ADVANCE (c, idx, idx_byte);
297 if (! multibyte) 297 if (! multibyte)
298 { 298 MAKE_CHAR_MULTIBYTE (c);
299 MAKE_CHAR_MULTIBYTE (c);
300 }
301 299
302 if (UPPERCASEP (c)) 300 if (UPPERCASEP (c))
303 c = DOWNCASE (c), uccount++; 301 c = DOWNCASE (c), uccount++;
@@ -384,7 +382,7 @@ Returns the abbrev symbol, if expansion took place. */)
384 382
385 /* Find the initial. */ 383 /* Find the initial. */
386 while (pos < PT_BYTE 384 while (pos < PT_BYTE
387 && SYNTAX (*BUF_BYTE_ADDRESS (current_buffer, pos)) != Sword) 385 && SYNTAX (FETCH_CHAR_AS_MULTIBYTE (pos)) != Sword)
388 pos++; 386 pos++;
389 387
390 /* Change just that. */ 388 /* Change just that. */