diff options
author | Eli Zaretskii <eliz@gnu.org> | 2012-10-12 17:19:54 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2012-10-12 17:19:54 +0200 |
commit | bb385a92ec4f8f5bbc93641aaa274bd735826574 (patch) | |
tree | 8fff4a185dfc74f91d94edc7b45dcd9dacbfbd67 /lisp/emacs-lisp/macroexp.el | |
parent | 605a3df6811c2b3ce9379149cc8fd64fc9846136 (diff) | |
download | emacs-bb385a92ec4f8f5bbc93641aaa274bd735826574.tar.gz emacs-bb385a92ec4f8f5bbc93641aaa274bd735826574.tar.bz2 emacs-bb385a92ec4f8f5bbc93641aaa274bd735826574.zip |
Fix bug #12587 with slow startup on MS-Windows with Netlogon service.
src/fileio.c (check_existing): New function.
(make_temp_name, Ffile_exists_p, Ffile_writable_p): Call it
instead of calling 'stat', when what's needed is to check whether
a file exists. This avoids expensive system calls on MS-Windows.
src/w32.c (init_environment): Call 'check_existing' instead of 'stat'.
src/lread.c (openp) [WINDOWSNT]: Call 'access' instead of 'stat' to
determine whether a file exists and is not a directory.
src/lisp.h (check_existing): Add prototype.
Diffstat (limited to 'lisp/emacs-lisp/macroexp.el')
0 files changed, 0 insertions, 0 deletions