aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa2002-07-31 07:09:00 +0000
committerKenichi Handa2002-07-31 07:09:00 +0000
commit9d123124fb215da56240e2ec9b51d0645ed613f6 (patch)
tree2e6bfe64365afc779fd7b9c5e1830cf1348f01fd /src/coding.c
parent21f9c39d3b16a6ddf99f297cd87bff75d3293007 (diff)
downloademacs-9d123124fb215da56240e2ec9b51d0645ed613f6.tar.gz
emacs-9d123124fb215da56240e2ec9b51d0645ed613f6.zip
* coding.c (make_conversion_work_buffer): Adjusted for the change
of Fset_buffer_multibyte. (encode_coding_raw_text): Increment p0 in the loop.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/coding.c b/src/coding.c
index 56b66de9d9e..c53760a07c0 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -1594,9 +1594,8 @@ emacs_mule_char (coding, src, nbytes, nchars)
1594 1594
1595 case 1: 1595 case 1:
1596 code = c; 1596 code = c;
1597 charset = CHARSET_FROM_ID (ASCII_BYTE_P (code) ? charset_ascii 1597 charset = CHARSET_FROM_ID (ASCII_BYTE_P (code)
1598 : code < 0xA0 ? charset_8_bit_control 1598 ? charset_ascii : charset_eight_bit);
1599 : charset_8_bit_graphic);
1600 break; 1599 break;
1601 1600
1602 default: 1601 default:
@@ -4279,7 +4278,10 @@ encode_coding_raw_text (coding)
4279 4278
4280 CHAR_STRING_ADVANCE (c, p1); 4279 CHAR_STRING_ADVANCE (c, p1);
4281 while (p0 < p1) 4280 while (p0 < p1)
4282 EMIT_ONE_BYTE (*p0); 4281 {
4282 EMIT_ONE_BYTE (*p0);
4283 p0++;
4284 }
4283 } 4285 }
4284 } 4286 }
4285 else 4287 else
@@ -5789,7 +5791,7 @@ make_conversion_work_buffer (multibytep)
5789 set_buffer_internal (XBUFFER (buf)); 5791 set_buffer_internal (XBUFFER (buf));
5790 current_buffer->undo_list = Qt; 5792 current_buffer->undo_list = Qt;
5791 Ferase_buffer (); 5793 Ferase_buffer ();
5792 Fset_buffer_multibyte (multibytep ? Qt : Qnil); 5794 Fset_buffer_multibyte (multibytep ? Qt : Qnil, Qnil);
5793 set_buffer_internal (current); 5795 set_buffer_internal (current);
5794 return buf; 5796 return buf;
5795} 5797}