Commit 2199cb47 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(insert-directory): Don't treat FILE as a wildcard if FILE exists as

a directory.
parent 6f8b1d28
2007-06-23 Eli Zaretskii <eliz@gnu.org>
* ls-lisp.el (insert-directory): Don't treat FILE as a wildcard if
FILE exists as a directory.
2007-06-22 Jay Belanger <jay.p.belanger@gmail.com>
* calc/calc.el (math-bignum-digit-length)
......
......@@ -229,7 +229,10 @@ that work are: A a c i r S s t u U X g G B C R and F partly."
;; `ls' don't mind, we certainly do, because it makes us think
;; there is no wildcard, only a directory name.
(if (and ls-lisp-support-shell-wildcards
(string-match "[[?*]" file))
(string-match "[[?*]" file)
;; Prefer an existing directory to wildcards, like
;; dired-noselect does.
(not (file-directory-p file)))
(progn
(or (not (eq (aref file (1- (length file))) ?/))
(setq file (substring file 0 (1- (length file)))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment