Mail Archives: djgpp-workers/1999/03/21/09:06:28
Martin Str|mberg <ams AT ludd DOT luth DOT se> writes:
> Eli said:
> > I don't know, it was that way since the first day I used the DJGPP
> > version of Emacs.
>
> I'll see what I can do in the emacs source (I suppose it's there a
> check for and use of TMPDIR should be added).
It is already there in elisp files lisp/files.el and lisp/startup.el
(for Emacs-20.3), look for variable `temporary-file-directory'. But
order in which Emacs searches for tmp directory location is different
for ms-dos and windows. The only reason I can imagine is faster
startup (TEMP is more likely to be defined in ms-dos), but it is
somewhat ridiculous.
Anyway, you can override it in _emacs file with the following
(setq temporary-file-directory
(file-name-as-directory
(or (getenv "TMPDIR") (getenv "TEMP") (getenv "TMP") "c:/temp")))
But IMHO it should be changed in Emacs sources.
--
Michael Bukin
- Raw text -