comparison src/coding.c @ 21067:926174c7283a

(code_convert_region): Fix previous change.
author Kenichi Handa <handa@m17n.org>
date Wed, 04 Mar 1998 08:05:14 +0000
parents 839b22ad1e42
children 75c6408013e5
comparison
equal deleted inserted replaced
21066:dc937790966c 21067:926174c7283a
4256 multibyte sequence. We must treat those codes as 4256 multibyte sequence. We must treat those codes as
4257 tailing constituents of the multibyte sequence. For 4257 tailing constituents of the multibyte sequence. For
4258 that, we increase byte positions of position keepers 4258 that, we increase byte positions of position keepers
4259 whose char positions are GPT. */ 4259 whose char positions are GPT. */
4260 int byte_increase; 4260 int byte_increase;
4261 Lisp_Object tail;
4262
4261 p1 = GPT_ADDR + 2, pmax = p0 + 1 + inserted_byte; 4263 p1 = GPT_ADDR + 2, pmax = p0 + 1 + inserted_byte;
4262 Lisp_Object tail;
4263
4264 while (! CHAR_HEAD_P (*p1) && p1 < pmax) p1++; 4264 while (! CHAR_HEAD_P (*p1) && p1 < pmax) p1++;
4265 /* Now, codes from P0 to P1 constitute a single 4265 /* Now, codes from P0 to P1 constitute a single
4266 multibyte character. */ 4266 multibyte character. */
4267 4267
4268 byte_increase = p1 - GPT_ADDR; 4268 byte_increase = p1 - GPT_ADDR;