To: djgpp-workers AT delorie DOT com Cc: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii) Subject: Re: More TMPDIR strangeness References: <199903211157 DOT MAA04465 AT father DOT ludd DOT luth DOT se> From: Michael Bukin Date: 21 Mar 1999 18:51:42 +0600 In-Reply-To: Martin Str|mberg's message of "Sun, 21 Mar 1999 12:57:27 +0100 (MET)" Message-ID: <20aex7kntt.fsf@Sky.inp.nsk.su> Lines: 26 X-Mailer: Gnus v5.5/Emacs 19.34 Reply-To: djgpp-workers AT delorie DOT com Martin Str|mberg 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