help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Opening a Dired buffer with an arbitrary list of files.


From: Mathias Dahl
Subject: Re: Opening a Dired buffer with an arbitrary list of files.
Date: Tue, 23 May 2006 17:01:52 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)

Miles Bader <miles@gnu.org> writes:


> A bit shorter still (and demonstrating the typical use of `interactive'):
>
> (defun gds-dired-3 (dir pattern)
>   "Use Google Desktop Search to find files in DIR matching PATTERN
> and list them in dired."
>   (interactive "DSearch directory: \nsSearch pattern: ")
>   (dired (cons dir (gds-get-matching-files pattern 
> gds-dired-number-of-hits))))

Super! Although the "Search directory" prompt is misleading. The
directory entered does not control the search in any way, it just sets
the dired buffer's default directory. One should probably hard code it
to "~".

:)

Thanks for the hints!


reply via email to

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