[Top][All Lists]

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

Re: Dired and wildcards

From: Andreas Schwab
Subject: Re: Dired and wildcards
Date: Tue, 19 Jun 2007 18:51:51 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.97 (gnu/linux)

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)))


Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

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