bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18851: 24.4; emacs cannot be started if the current directory has be


From: Stefan Monnier
Subject: bug#18851: 24.4; emacs cannot be started if the current directory has been removed
Date: Wed, 29 Oct 2014 08:57:16 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> The shell has no problems when the current directory has been
> removed. It can still run without needing to switch to $HOME.

The problem is that the `emacs' process only access files using absolute
file names (it basically doesn't use the process's current working
directory, because every buffer has its own "current working
directory"), so when the Emacs user thinks he's using a relative file
name, Emacs really concatenates this relative file name to the value of
`default-directory' and passes *that* to the OS.

So the current Emacs C code really has no way to access a directory/file
which is not accessible from the root directory.


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]