diff options
| author | Paul Eggert | 2025-07-16 08:43:14 -0700 |
|---|---|---|
| committer | Paul Eggert | 2025-07-16 11:45:23 -0700 |
| commit | 2074951c2adff43be49822c344d6cf3fee2e29a5 (patch) | |
| tree | cffd1722738a3e596ae98e2251a87ac7537f7775 /java/org/gnu | |
| parent | 94b2a0b2fccc4da253f403d5971ed1b6449a82c0 (diff) | |
| download | emacs-2074951c2adff43be49822c344d6cf3fee2e29a5.tar.gz emacs-2074951c2adff43be49822c344d6cf3fee2e29a5.zip | |
Avoid some syscalls in locate-dominating-file
* lisp/files.el (locate-dominating-file): Do not call
file-directory-p each time through a loop ascending the directory
hierarchy, as the file must be a directory after the first loop
iteration. Instead, call file-directory-p just once, before the
loop starts, and do this only if the file name is not already that
of a directory.
Diffstat (limited to 'java/org/gnu')
0 files changed, 0 insertions, 0 deletions