[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Filtering files in dired while invoking
From: |
Lei Wang |
Subject: |
Re: Filtering files in dired while invoking |
Date: |
Tue, 31 Aug 2010 20:17:03 +0800 |
On 8/31/10, suvayu ali <fatkasuvayu+linux@gmail.com> wrote:
> Hi,
>
> I was trying to filter the files listed in a dired buffer. Filtering
> with one shell glob works fine, but how do I pass multiple shell globs
> to dired?
>
> What I 'm looking for is to list files as they would be listed by,
>
> $ ls -l *.C *.h *.cxx
>
> I couldn't find any reference to this in the info manual. But the
> docstring for dired says this,
>
> (dired DIRNAME &optional SWITCHES)
>
> .....
> If DIRNAME is a cons, its first element is
> taken as the directory name and the rest as an explicit list of
> files to make directory entries for.
> .....
>
> How can I achieve that? Thanks for any suggestions.
>
> --
> Suvayu
>
> Open source is the future. It sets us free.
>
>
Why not use `find-name-dired' or write your function on basis of it?
--
Regards,
Lei