X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Thu, 22 Apr 2004 11:36:00 +0300 (EET DST) From: Esa A E Peuha Sender: peuha AT sirppi DOT helsinki DOT fi To: djgpp AT delorie DOT com Subject: Emacs oddity with TMPDIR Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: esa DOT peuha AT Helsinki DOT fi On my machine, I have TMPDIR, TEMP, and TMP all set to e: (my ram drive) which seems to work fine, except that Emacs insists on changing TMPDIR to c:/ while it's being run. The reason for this is that the function init_environment in msdos.c (in Emacs sources) calls access with the value of each variable, but doesn't check that there's a trailing slash, and this causes access to fail. I'm not quite sure whether access("e:", D_OK) should fail or not, but in either case, Emacs should probably add the trailing slash before calling access and setting TMPDIR (in case some Emacs functions assume that there is a trailing slash). -- Esa Peuha student of mathematics at the University of Helsinki http://www.helsinki.fi/~peuha/