aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog15
-rw-r--r--src/callproc.c2
2 files changed, 11 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index eed82fc865b..bef6c1593a7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12011-05-20 Eli Zaretskii <eliz@gnu.org>
2
3 * callproc.c (Fcall_process) [MSDOS]: Fix arguments to
4 report_file_error introduced by the change from 2011-05-07.
5
12011-05-20 Paul Eggert <eggert@cs.ucla.edu> 62011-05-20 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 * systime.h (Time): Define only if emacs is defined. 8 * systime.h (Time): Define only if emacs is defined.
@@ -176,11 +181,11 @@
176 (Fget_screen_color): New function. 181 (Fget_screen_color): New function.
177 (syms_of_ntterm): Defsubr it. 182 (syms_of_ntterm): Defsubr it.
178 183
179 * callproc.c (call_process_cleanup): Don't close and unlink the 184 * callproc.c (call_process_cleanup) [MSDOS]: Don't close and
180 temporary file if Fcall_process didn't create it in the first 185 unlink the temporary file if Fcall_process didn't create it in the
181 place. 186 first place.
182 (Fcall_process): Don't create tempfile if stdout of the child 187 (Fcall_process) [MSDOS]: Don't create tempfile if stdout of the
183 process will be redirected to a file specified with `:file'. 188 child process will be redirected to a file specified with `:file'.
184 Don't try to re-open tempfile in that case, and set fd[0] to -1 as 189 Don't try to re-open tempfile in that case, and set fd[0] to -1 as
185 cue to call_process_cleanup not to close that handle. 190 cue to call_process_cleanup not to close that handle.
186 191
diff --git a/src/callproc.c b/src/callproc.c
index a966a26b938..67d0b6aede3 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -577,7 +577,7 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
577 unlink (tempfile); 577 unlink (tempfile);
578 emacs_close (filefd); 578 emacs_close (filefd);
579 report_file_error ("Cannot re-open temporary file", 579 report_file_error ("Cannot re-open temporary file",
580 Fcons (tempfile, Qnil)); 580 Fcons (build_string (tempfile), Qnil));
581 } 581 }
582 } 582 }
583 else 583 else