[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dired and wildcards

From: Eli Zaretskii
Subject: Re: Dired and wildcards
Date: Tue, 19 Jun 2007 22:41:09 +0300

> From: Andreas Schwab <address@hidden>
> Cc: address@hidden
> Date: Tue, 19 Jun 2007 18:51:51 +0200
> Eli Zaretskii <address@hidden> writes:
> > And now to my original question: is there a way to tell Dired to
> > interpret "foo[bar]" as a wildcard, even though a file by that literal
> > name exists?  You seem to say there is no way, but I'm not sure I
> > understand you correctly.
> An existing directory is always preferred, see dired-noselect:
>     ;; If the argument was syntactically  a directory name not a file name,
>     ;; or if it happens to name a file that is a directory,
>     ;; convert it syntactically to a directory name.
>     ;; The reason for checking initially-was-dirname
>     ;; and not just file-directory-p
>     ;; is that file-directory-p is slow over ftp.
>     (if (or initially-was-dirname (file-directory-p dirname))
>       (setq dirname  (file-name-as-directory dirname)))

Okay, thanks.

In case you are wondering, I asked these questions because the ls-lisp
emulation seems not to behave this way.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]