From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lei Wang Newsgroups: gmane.emacs.help Subject: Re: Filtering files in dired while invoking Date: Tue, 31 Aug 2010 20:17:03 +0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1283257097 18244 80.91.229.12 (31 Aug 2010 12:18:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 Aug 2010 12:18:17 +0000 (UTC) Cc: Emacs mailing list To: suvayu ali Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 31 14:18:15 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OqPn1-0003ys-Gv for geh-help-gnu-emacs@m.gmane.org; Tue, 31 Aug 2010 14:18:11 +0200 Original-Received: from localhost ([127.0.0.1]:57021 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqPn0-0005kd-KK for geh-help-gnu-emacs@m.gmane.org; Tue, 31 Aug 2010 08:18:10 -0400 Original-Received: from [140.186.70.92] (port=58886 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqPm2-0005eQ-O3 for help-gnu-emacs@gnu.org; Tue, 31 Aug 2010 08:17:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OqPlx-0002UL-LL for help-gnu-emacs@gnu.org; Tue, 31 Aug 2010 08:17:10 -0400 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:54247) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqPlx-0002U9-H0 for help-gnu-emacs@gnu.org; Tue, 31 Aug 2010 08:17:05 -0400 Original-Received: by fxm3 with SMTP id 3so4720961fxm.0 for ; Tue, 31 Aug 2010 05:17:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=c7fXzrnw7LPAQsO4d45yjaJ34WSzmcdumaGq7nlS0yM=; b=k+kuUkHUWCD9OYq6JFhHkZ+iaJWdlxR81dx9RThVX1AVerDHufSujGu6nZMbnWuVix jRP61ZnFzsAOqLoZEz8A3WRbw4WasP7ssVsxxNupkEgQCdq/CE1khhgxfO+nmU1Qkhwu 5m4Z3GfnAlUGza17WgmkgX8Zl5KFiNJSYg5OE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=xbZmHCOz1a+TABQeUQuoVtLVM3WE6s9kNYUR6KD0fdQo5Swjb+oG5KlK17FqiPh7Wr fh0Ahq9kZF5TQ/9CxCMpVQGURgY+4vNx89f65RbRI1utKLsuk1ENQ00BLZ40Cw2/wAZE l/IcBrDELKA9kitdPlBIiQvphWHR7EIclgNa0= Original-Received: by 10.239.167.4 with SMTP id d4mr313380hbe.163.1283257023947; Tue, 31 Aug 2010 05:17:03 -0700 (PDT) Original-Received: by 10.239.160.135 with HTTP; Tue, 31 Aug 2010 05:17:03 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:74841 Archived-At: On 8/31/10, suvayu ali 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