From a65473abf071548d0da2b5a26983788517f44ecd Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 23 Jun 2007 10:05:57 +0000 Subject: [PATCH] Fix last change. --- lisp/ChangeLog | 2 +- lisp/ls-lisp.el | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 60a84987a6d..9af85501f46 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,7 +1,7 @@ 2007-06-23 Eli Zaretskii * ls-lisp.el (insert-directory): Don't treat FILE as a wildcard if - FILE exists as a directory. + FILE exists as a file. 2007-06-22 Jay Belanger diff --git a/lisp/ls-lisp.el b/lisp/ls-lisp.el index 5d6d68e3271..461e1ea44cc 100644 --- a/lisp/ls-lisp.el +++ b/lisp/ls-lisp.el @@ -230,9 +230,9 @@ that work are: A a c i r S s t u U X g G B C R and F partly." ;; 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))))) -- 2.39.2