From: Jim Meyering Date: Wed, 30 May 2012 14:20:45 +0000 (+0800) Subject: Improve call-process-region error message. X-Git-Tag: emacs-24.2.90~471^2~6^2~47 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=baac5bc76d4ac3d2bf73c20d085d36e062bb19cb;p=emacs.git Improve call-process-region error message. * src/callproc.c (Fcall_process_region): Include directory component in mkstemp error message. Fixes: debbugs:11586 --- diff --git a/src/ChangeLog b/src/ChangeLog index fabbcbef40d..c21c21deb9a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2012-05-30 Jim Meyering + + * callproc.c (Fcall_process_region): Include directory component + in mkstemp error message (Bug#11586). + 2012-05-30 Paul Eggert * alloc.c, lisp.h (make_pure_vector): Now static. diff --git a/src/callproc.c b/src/callproc.c index f7c9971907d..976d3061c8b 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -1015,7 +1015,7 @@ usage: (call-process-region START END PROGRAM &optional DELETE BUFFER DISPLAY &r UNBLOCK_INPUT; if (fd == -1) report_file_error ("Failed to open temporary file", - Fcons (Vtemp_file_name_pattern, Qnil)); + Fcons (build_string (tempfile), Qnil)); else close (fd); }