From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.help Subject: Re: Opening a Dired buffer with an arbitrary list of files. Date: Tue, 23 May 2006 17:01:52 +0200 Message-ID: References: <68816b4c0605190734r52b29978w7d41ef5393e43246@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1148398867 6866 80.91.229.2 (23 May 2006 15:41:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 23 May 2006 15:41:07 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 23 17:41:01 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FiYzm-0003AE-BX for geh-help-gnu-emacs@m.gmane.org; Tue, 23 May 2006 17:40:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FiYzl-0006Lj-Tm for geh-help-gnu-emacs@m.gmane.org; Tue, 23 May 2006 11:40:29 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.aset.psu.edu!news.glorb.com!newsgate.cistron.nl!news2.euro.net!213.132.189.2.MISMATCH!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!newsfeed.r-kom.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-X-Trace: individual.net Z8l/Tf9PbHv5thdYJJzROgDjrd0xeG45l5x1esehFp/BkKGIXj User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:x5mdwYGhcGou0iGJBjygApqhZ+o= Original-Xref: shelby.stanford.edu gnu.emacs.help:139599 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:35222 Archived-At: Miles Bader 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!