(insert-directory): Don't treat FILE as a wildcard if FILE exists as
a directory.
This commit is contained in:
parent
247eedf8e9
commit
9b40e204ec
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
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-21 Reto Zimmermann <reto@gnu.org>
|
2007-06-21 Reto Zimmermann <reto@gnu.org>
|
||||||
|
|
||||||
* vera-mode.el (vera-mode): Fix `commend-end-skip' setting.
|
* vera-mode.el (vera-mode): Fix `commend-end-skip' setting.
|
||||||
|
|
|
@ -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
|
;; `ls' don't mind, we certainly do, because it makes us think
|
||||||
;; there is no wildcard, only a directory name.
|
;; there is no wildcard, only a directory name.
|
||||||
(if (and ls-lisp-support-shell-wildcards
|
(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
|
(progn
|
||||||
(or (not (eq (aref file (1- (length file))) ?/))
|
(or (not (eq (aref file (1- (length file))) ?/))
|
||||||
(setq file (substring file 0 (1- (length file)))))
|
(setq file (substring file 0 (1- (length file)))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue