]> git.eshelyaron.com Git - emacs.git/commit
Simplify and speed up after-find-file
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 10 Feb 2021 18:55:42 +0000 (10:55 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 10 Feb 2021 18:58:40 +0000 (10:58 -0800)
commit4467073c50d2c7fbbb30530d1a0a25f8272ff56f
tree6a5e3a42d4b6702ffe2052c46661814711e132ff
parent4459dcc07865f6ae1f21f624fcb09cf8fdaecdb5
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.
lisp/files.el