1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-21 05:00:47 -08:00

* coding.c (make_conversion_work_buffer): Adjusted for the change

of Fset_buffer_multibyte.
(encode_coding_raw_text): Increment p0 in the loop.
This commit is contained in:
Kenichi Handa 2002-07-31 07:09:00 +00:00
parent 21f9c39d3b
commit 9d123124fb

View file

@ -1594,9 +1594,8 @@ emacs_mule_char (coding, src, nbytes, nchars)
case 1: case 1:
code = c; code = c;
charset = CHARSET_FROM_ID (ASCII_BYTE_P (code) ? charset_ascii charset = CHARSET_FROM_ID (ASCII_BYTE_P (code)
: code < 0xA0 ? charset_8_bit_control ? charset_ascii : charset_eight_bit);
: charset_8_bit_graphic);
break; break;
default: default:
@ -4279,7 +4278,10 @@ encode_coding_raw_text (coding)
CHAR_STRING_ADVANCE (c, p1); CHAR_STRING_ADVANCE (c, p1);
while (p0 < p1) while (p0 < p1)
EMIT_ONE_BYTE (*p0); {
EMIT_ONE_BYTE (*p0);
p0++;
}
} }
} }
else else
@ -5789,7 +5791,7 @@ make_conversion_work_buffer (multibytep)
set_buffer_internal (XBUFFER (buf)); set_buffer_internal (XBUFFER (buf));
current_buffer->undo_list = Qt; current_buffer->undo_list = Qt;
Ferase_buffer (); Ferase_buffer ();
Fset_buffer_multibyte (multibytep ? Qt : Qnil); Fset_buffer_multibyte (multibytep ? Qt : Qnil, Qnil);
set_buffer_internal (current); set_buffer_internal (current);
return buf; return buf;
} }