diff options
| author | Eli Zaretskii | 2007-06-23 09:45:58 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2007-06-23 09:45:58 +0000 |
| commit | 2199cb47e752d18780810e25ce83d350c90cfb34 (patch) | |
| tree | 3601d8e73bece13f4dc7d0dc6352dfa4df775422 | |
| parent | 6f8b1d28c2b41822d0e2bad25eacf5b22fbe62c6 (diff) | |
| download | emacs-2199cb47e752d18780810e25ce83d350c90cfb34.tar.gz emacs-2199cb47e752d18780810e25ce83d350c90cfb34.zip | |
(insert-directory): Don't treat FILE as a wildcard if FILE exists as
a directory.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/ls-lisp.el | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 88a81275ce1..60a84987a6d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-06-23 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * ls-lisp.el (insert-directory): Don't treat FILE as a wildcard if | ||
| 4 | FILE exists as a directory. | ||
| 5 | |||
| 1 | 2007-06-22 Jay Belanger <jay.p.belanger@gmail.com> | 6 | 2007-06-22 Jay Belanger <jay.p.belanger@gmail.com> |
| 2 | 7 | ||
| 3 | * calc/calc.el (math-bignum-digit-length) | 8 | * calc/calc.el (math-bignum-digit-length) |
diff --git a/lisp/ls-lisp.el b/lisp/ls-lisp.el index 94c8004ff5e..5d6d68e3271 100644 --- a/lisp/ls-lisp.el +++ b/lisp/ls-lisp.el | |||
| @@ -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." | |||
| 229 | ;; `ls' don't mind, we certainly do, because it makes us think | 229 | ;; `ls' don't mind, we certainly do, because it makes us think |
| 230 | ;; there is no wildcard, only a directory name. | 230 | ;; there is no wildcard, only a directory name. |
| 231 | (if (and ls-lisp-support-shell-wildcards | 231 | (if (and ls-lisp-support-shell-wildcards |
| 232 | (string-match "[[?*]" file)) | 232 | (string-match "[[?*]" file) |
| 233 | ;; Prefer an existing directory to wildcards, like | ||
| 234 | ;; dired-noselect does. | ||
| 235 | (not (file-directory-p file))) | ||
| 233 | (progn | 236 | (progn |
| 234 | (or (not (eq (aref file (1- (length file))) ?/)) | 237 | (or (not (eq (aref file (1- (length file))) ?/)) |
| 235 | (setq file (substring file 0 (1- (length file))))) | 238 | (setq file (substring file 0 (1- (length file))))) |