# HG changeset patch # User Eli Zaretskii # Date 1182593114 0 # Node ID e870f4d7bcdbdc45dd75893e59b9d56e61eb9807 # Parent 38d27d6aafc204b77011d4c11a3f1d1f0b87c52a Fix last change. diff -r 38d27d6aafc2 -r e870f4d7bcdb lisp/ls-lisp.el --- a/lisp/ls-lisp.el Sat Jun 23 09:45:58 2007 +0000 +++ b/lisp/ls-lisp.el Sat Jun 23 10:05:14 2007 +0000 @@ -230,9 +230,9 @@ ;; there is no wildcard, only a directory name. (if (and ls-lisp-support-shell-wildcards (string-match "[[?*]" file) - ;; Prefer an existing directory to wildcards, like + ;; Prefer an existing file to wildcards, like ;; dired-noselect does. - (not (file-directory-p file))) + (not (file-exists-p file))) (progn (or (not (eq (aref file (1- (length file))) ?/)) (setq file (substring file 0 (1- (length file)))))