Mail Archives: djgpp/2004/04/22/14:47:12
> 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 -