mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-06 11:50:51 -08:00
(Fexpand_abbrev): Convert a unibyte character to
multibyte if necessary.
This commit is contained in:
parent
f2e7bcef4d
commit
1464b3d8a8
1 changed files with 2 additions and 4 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue