Improve call-process-region error message.
authorJim Meyering <meyering@redhat.com>
Wed, 30 May 2012 14:20:45 +0000 (22:20 +0800)
committerChong Yidong <cyd@gnu.org>
Wed, 30 May 2012 14:20:45 +0000 (22:20 +0800)
* src/callproc.c (Fcall_process_region): Include directory component
in mkstemp error message.

Fixes: debbugs:11586

src/ChangeLog
src/callproc.c

index fabbcbe..c21c21d 100644 (file)
@@ -1,3 +1,8 @@
+2012-05-30  Jim Meyering  <meyering@redhat.com>
+
+       * callproc.c (Fcall_process_region): Include directory component
+       in mkstemp error message (Bug#11586).
+
 2012-05-30  Paul Eggert  <eggert@cs.ucla.edu>
 
        * alloc.c, lisp.h (make_pure_vector): Now static.
index f7c9971..976d306 100644 (file)
@@ -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);
     }