Eli Zaretskii writes: > Or make the REGEXP argument to directory-files-recursively more > specific, to reject lock files. > > But yes, the use of file-exists-p is not TRT, IMO. See patch.