Hi!
Today I was wondering why a function wouldn't work when given a remote
directory. The function essentially looks for (regular) files in the
directory, which it then moves to another location.
Well, look for yourselves at the tests I made (also verified on XEmacs
20.4, and on Emacs 19.34).
Considering the fact that file-directory-p and file-symlink-p work
correctly with remote locations, I'd say that file-regular-p is
broken. Further down is what I believe to be another example of it's
brokenness ("/vmlinuz" *is* a symlink).
(file-regular-p "/etc/passwd") => t
(file-regular-p "/leo@localhost:/etc/passwd") => nil
(file-directory-p "/etc") => t
(file-directory-p "/leo@localhost:/etc") => t
(file-symlink-p "/vmlinuz") => "boot/vmlinuz-2.0.36"
(file-symlink-p "/leo@localhost:/vmlinuz") =>
"boot/vmlinuz-2.0.36"
(file-regular-p "/vmlinuz") => t