delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/04/22/14:47:12

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Thu, 22 Apr 2004 21:45:47 +0200
From: "Eli Zaretskii" <eliz AT gnu DOT org>
Sender: halo1 AT zahav DOT net DOT il
To: Esa A E Peuha <peuha AT cc DOT helsinki DOT fi>
Message-Id: <2914-Thu22Apr2004214547+0300-eliz@gnu.org>
X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9
CC: djgpp AT delorie DOT com
In-reply-to: <Pine.OSF.4.58.0404221114550.20168@sirppi.helsinki.fi> (message
from Esa A E Peuha on Thu, 22 Apr 2004 11:36:00 +0300 (EET DST))
Subject: Re: Emacs oddity with TMPDIR
References: <Pine DOT OSF DOT 4 DOT 58 DOT 0404221114550 DOT 20168 AT sirppi DOT helsinki DOT fi>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Thu, 22 Apr 2004 11:36:00 +0300 (EET DST)
> From: Esa A E Peuha <peuha AT cc DOT helsinki DOT fi>
> 
> On my machine, I have TMPDIR, TEMP, and TMP all set to e: (my ram drive)

Why not set them to e:/ or e:\ ?

> 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).

I'm not sure it's Emacs's fault: "e:" is a bad value for a temporary
directory, since the place it points to will change with the cwd on
drive E.  Emacs needs a fixed place for TMPDIR, so it could relate to
it from any buffer and still find the files.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019