From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Opening a Dired buffer with an arbitrary list of files. Date: Fri, 19 May 2006 09:45:02 -0600 Organization: IHS Message-ID: References: <68816b4c0605190734r52b29978w7d41ef5393e43246@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1148054118 25713 80.91.229.2 (19 May 2006 15:55:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 May 2006 15:55:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 19 17:55:18 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 1Fh7H7-0004qq-Lr for geh-help-gnu-emacs@m.gmane.org; Fri, 19 May 2006 17:52:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fh7H7-0007Fp-DP for geh-help-gnu-emacs@m.gmane.org; Fri, 19 May 2006 11:52:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fh7Gv-0007FU-0D for help-gnu-emacs@gnu.org; Fri, 19 May 2006 11:52:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fh7Gs-0007FI-Vx for help-gnu-emacs@gnu.org; Fri, 19 May 2006 11:52:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fh7Gs-0007FF-SW for help-gnu-emacs@gnu.org; Fri, 19 May 2006 11:52:10 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Fh7KD-0004LJ-MM for help-gnu-emacs@gnu.org; Fri, 19 May 2006 11:55:38 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Fh7Eo-0004CC-Oc for help-gnu-emacs@gnu.org; Fri, 19 May 2006 17:50:02 +0200 Original-Received: from 207.167.42.206 ([207.167.42.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 May 2006 17:50:02 +0200 Original-Received: from ihs_4664 by 207.167.42.206 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 May 2006 17:50:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 36 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.206 User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) In-Reply-To: <68816b4c0605190734r52b29978w7d41ef5393e43246@mail.gmail.com> 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:35156 Archived-At: Alder Green wrote: > Is there a way open a Dired buffer containing an arbitrary list of files? > > I can have those files listed in a plain text file, or maybe provided > as list return value of an elisp function. But I'm wondering how I can > pass that list to be opened as a Dired buffer, and what format should > it take. Only if all the files are in the same directory: ,----[ C-h f dired RET ] | dired is an interactive compiled Lisp function in `dired.el'. | It is bound to C-x d, . | (dired dirname &optional switches) | | "Edit" directory dirname--delete, rename, print, etc. some files in it. | Optional second argument switches specifies the `ls' options used. | (Interactively, use a prefix argument to be able to specify switches.) | Dired displays a list of files in dirname (which may also have | shell wildcards appended to select certain files). 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. | You can move around in it with the usual commands. | You can flag files for deletion with d and then | delete them by typing x. | Type h after entering Dired for more info. | | If dirname is already in a dired buffer, that buffer is used without refresh. | | [back] `---- -- Kevin