Mercurial > emacs
changeset 29172:46ad5a027334
(run_pre_post_conversion_on_str): Set point to the
beginning of buffer before calling coding->post_read_conversion.
(decode_coding_string): Give correct args to
run_pre_post_conversion_on_str.
(encode_coding_string): Likewise.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 25 May 2000 04:44:33 +0000 |
parents | 53a9512d0a8b |
children | 0baf093b1e1a |
files | src/coding.c |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/coding.c Thu May 25 04:43:36 2000 +0000 +++ b/src/coding.c Thu May 25 04:44:33 2000 +0000 @@ -5000,7 +5000,10 @@ if (encodep) call2 (coding->pre_write_conversion, make_number (BEG), make_number (Z)); else - call1 (coding->post_read_conversion, make_number (Z - BEG)); + { + TEMP_SET_PT_BOTH (BEG, BEG_BYTE); + call1 (coding->post_read_conversion, make_number (Z - BEG)); + } inhibit_pre_post_conversion = 0; str = make_buffer_string (BEG, Z, 0); return unbind_to (count, str); @@ -5110,7 +5113,7 @@ if (SYMBOLP (coding->post_read_conversion) && !NILP (Ffboundp (coding->post_read_conversion))) - str = run_pre_post_conversion_on_str (str, 0); + str = run_pre_post_conversion_on_str (str, coding, 0); return str; } @@ -5130,7 +5133,7 @@ if (SYMBOLP (coding->pre_write_conversion) && !NILP (Ffboundp (coding->pre_write_conversion))) - str = run_pre_post_conversion_on_str (str, 1); + str = run_pre_post_conversion_on_str (str, coding, 1); from = 0; to = XSTRING (str)->size;