GNU bug report logs -
#17330
files.el cd-absolute overcome false negative from file-executable-p
Previous Next
Full log
View this message in rfc822 format
> I'm finding this rather abstract. I think a reproducible example of
> the same kind of issue on a Unix platform would be helpful.
It's probably somewhere between hard and impossible to reproduce on
a Unix platform.
The problem is that cd-absolute wants to signal an error if the
directory specified can't be used, whereas within Emacs any string can
be used for the "current directory" (it's just that some choices lead
to errors later on, such as when trying to get to a relative-named file
or when trying to spawn a process).
AFAIK, the only moment where Emacs cares whether the OS can use
something as a current directory (i.e. when it does "chdir") is when it
spawn a process via call-process or start-process.
So, we could solve this problem either by dropping this error, or by
using call-process instead of file-executable-p. Yet another way would
be to provide a new subroutine that gives access to chdir somehow
(e.g. "file-chdirable-p").
I think the simplest solution for now is to turn the error into a warning.
Stefan
This bug report was last modified 3 years and 210 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.