diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2021-02-10 10:55:42 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-02-10 10:58:40 -0800 |
commit | 4467073c50d2c7fbbb30530d1a0a25f8272ff56f (patch) | |
tree | 6a5e3a42d4b6702ffe2052c46661814711e132ff /lisp/emacs-lisp/shadow.el | |
parent | 4459dcc07865f6ae1f21f624fcb09cf8fdaecdb5 (diff) | |
download | emacs-4467073c50d2c7fbbb30530d1a0a25f8272ff56f.tar.gz emacs-4467073c50d2c7fbbb30530d1a0a25f8272ff56f.tar.bz2 emacs-4467073c50d2c7fbbb30530d1a0a25f8272ff56f.zip |
Simplify and speed up after-find-file
Use newer primitives like file-accessible-directory-p to simplify
and speed up longstanding code in after-find-file.
* lisp/files.el (after-find-file):
Prefer file-exists-p + file-symlink-p to file-attributes +
file-symlink-p + file-chase-links + file-exists-p.
Prefer file-accessible-directory-p to directory-file-name +
file-attributes.
Prefer file-directory-p to file-name-directory + file-exists-p.
Diffstat (limited to 'lisp/emacs-lisp/shadow.el')
0 files changed, 0 insertions, 0 deletions