Mail Archives: djgpp-workers/1999/03/23/06:03:31
From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
--- gnu/emacs/src/callproc.c~ Mon Aug 5 01:15:02 1996
+++ gnu/emacs/src/callproc.c Sun Mar 21 13:05:10 1999
@@ -333,7 +333,7 @@
}
#ifdef MSDOS /* MW, July 1993 */
- if ((outf = egetenv ("TMP")) || (outf = egetenv ("TEMP")))
+ if ((outf = egetenv ("TMPDIR")) || (outf = egetenv ("TMP")) || (outf = egetenv ("TEMP")))
strcpy (tempfile = alloca (strlen (outf) + 20), outf);
else
{
Thanks. The current Emacs sources already have a similar change, but
it also makes sure at startup that a usable temporary directory
exists. With your change, if none of the environment variables is
defined, the code will crash.
Also, I don't really recommend using a RAM disk for these purposes,
since call-process could result in really large files.
- Raw text -