Mercurial > emacs
changeset 34647:1898b3c996ff
(read_process_output): Don't run a filter if the code
decoder produces nothing but carryover.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 18 Dec 2000 00:39:59 +0000 |
parents | 400f26af47db |
children | e787281bcf24 |
files | src/process.c |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/process.c Mon Dec 18 00:39:30 2000 +0000 +++ b/src/process.c Mon Dec 18 00:39:59 2000 +0000 @@ -3009,11 +3009,12 @@ XSETINT (p->decoding_carryover, carryover); nbytes = STRING_BYTES (XSTRING (text)); nchars = XSTRING (text)->size; - internal_condition_case_1 (read_process_output_call, - Fcons (outstream, - Fcons (proc, Fcons (text, Qnil))), - !NILP (Vdebug_on_error) ? Qnil : Qerror, - read_process_output_error_handler); + if (nbytes > 0) + internal_condition_case_1 (read_process_output_call, + Fcons (outstream, + Fcons (proc, Fcons (text, Qnil))), + !NILP (Vdebug_on_error) ? Qnil : Qerror, + read_process_output_error_handler); /* If we saved the match data nonrecursively, restore it now. */ restore_match_data ();