summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2012-06-29 16:11:54 +0300
committerEli Zaretskii <eliz@gnu.org>2012-06-29 16:11:54 +0300
commit8d38f4616b85a226221e599c34e55298bb54d3cc (patch)
tree8edee1c820e7c335ede557b632786bb4e7ff4512 /lisp/emacs-lisp
parent2af3565e0f2b325924e4adad26a08b442fa022ac (diff)
downloademacs-8d38f4616b85a226221e599c34e55298bb54d3cc.tar.gz
emacs-8d38f4616b85a226221e599c34e55298bb54d3cc.tar.bz2
emacs-8d38f4616b85a226221e599c34e55298bb54d3cc.zip
Fix the current directory of the Emacs process on MS-Windows.
src/w32.c (getwd): Adjust commentary about startup_dir. (init_environment): Always call sys_access, even in non-MSVC builds. Don't chdir to the directory of the Emacs executable. This undoes code from 1997 which was justified by the need to "avoid conflicts when removing and renaming directories". But its downside was that every relative file name was being interpreted relative to the directory of the Emacs executable, which can never be TRT. In particular, it broke sys_access when called with relative file names. (sys_access): Map GetLastError to errno.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions