]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fexpand_abbrev): Convert a unibyte character to
authorKenichi Handa <handa@m17n.org>
Tue, 3 Sep 2002 04:06:07 +0000 (04:06 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 3 Sep 2002 04:06:07 +0000 (04:06 +0000)
multibyte if necessary.

src/abbrev.c

index 64989b4055399a498bf298d16dfde05929dc1c7e..7ba0f575a2dfb3790217369fdbcd72d6f81ff052 100644 (file)
@@ -295,9 +295,7 @@ Returns the abbrev symbol, if expansion took place.  */)
 
       FETCH_CHAR_ADVANCE (c, idx, idx_byte);
       if (! multibyte)
-       {
-         MAKE_CHAR_MULTIBYTE (c);
-       }
+       MAKE_CHAR_MULTIBYTE (c);
 
       if (UPPERCASEP (c))
        c = DOWNCASE (c), uccount++;
@@ -384,7 +382,7 @@ Returns the abbrev symbol, if expansion took place.  */)
 
          /* Find the initial.  */
          while (pos < PT_BYTE
-                && SYNTAX (*BUF_BYTE_ADDRESS (current_buffer, pos)) != Sword)
+                && SYNTAX (FETCH_CHAR_AS_MULTIBYTE (pos)) != Sword)
            pos++;
 
          /* Change just that.  */