From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: suvayu ali Newsgroups: gmane.emacs.help Subject: Re: Filtering files in dired while invoking Date: Tue, 31 Aug 2010 10:33:47 -0700 Message-ID: References: <201008311528.o7VFSu0I018719@beta.mvs.co.il> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1283276085 9011 80.91.229.12 (31 Aug 2010 17:34:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 Aug 2010 17:34:45 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: ehud@unix.mvs.co.il Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 31 19:34:42 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 1OqUjK-0000Vq-3M for geh-help-gnu-emacs@m.gmane.org; Tue, 31 Aug 2010 19:34:42 +0200 Original-Received: from localhost ([127.0.0.1]:36738 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqUjJ-0004Wu-Il for geh-help-gnu-emacs@m.gmane.org; Tue, 31 Aug 2010 13:34:41 -0400 Original-Received: from [140.186.70.92] (port=54286 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqUis-0004WF-2x for help-gnu-emacs@gnu.org; Tue, 31 Aug 2010 13:34:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OqUin-0003gF-4m for help-gnu-emacs@gnu.org; Tue, 31 Aug 2010 13:34:13 -0400 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:48868) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqUim-0003g7-WB for help-gnu-emacs@gnu.org; Tue, 31 Aug 2010 13:34:09 -0400 Original-Received: by wwb24 with SMTP id 24so4491052wwb.30 for ; Tue, 31 Aug 2010 10:34:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=bkkeUzwwIGhkjAu+zlepMHW436coQfhXbieryAZ10JU=; b=uHofRXCMUAgoP4/o+itHynoL6K4aWKvB/FSicp9FNJIpGh8cW7l1qaMukStk3czm/J +W5nPbIJmtHc68iqpGvp0H/Fv3SyA42MSaUp9neUiieb/XyIqbtlLCMqZ960CbzYjTEK BFOFsawl+Y+sldXh0E06nMntDux8zexzjEjSY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=QscbfjOL/+Qx2NMVws9nUB6mZ4mZ4bTSTGDOgSRM0bM87ReGhxjoC9L29Qlz6Y0OnK n6BigXxLcLPKsKykxie2m7wWIZRheu0gMzqpfpIrCqhR1obcmeHMOFtscxtM+0YqCiGL r4SJa4owYbVLeAiNe+n/sFnj/fbTf7XW+CEHE= Original-Received: by 10.216.30.207 with SMTP id k57mr6542200wea.88.1283276047943; Tue, 31 Aug 2010 10:34:07 -0700 (PDT) Original-Received: by 10.216.192.168 with HTTP; Tue, 31 Aug 2010 10:33:47 -0700 (PDT) In-Reply-To: <201008311528.o7VFSu0I018719@beta.mvs.co.il> X-Google-Sender-Auth: J7nRgPlJyMBjqdClBvjJBBTvlG0 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:74846 Archived-At: On 31 August 2010 08:28, Ehud Karni wrote: > On Mon, 30 Aug 2010 12:26:58 suvayu ali wrote: >> >> What I 'm looking for is to list files as they would be listed by, >> >> $ ls -l *.C *.h *.cxx > > The way to it in Emacs is to use {}. > In your case it will be {*.C,*.h,*.cxx} or *.{C,h,cxx}. > > BTW. It is not an Emacs thing, but a shell one, > =A0 =A0 i.e. you can write ls -al *.{jpg,gif,pcx} > =A0 =A0 See the Bash man page under "Brace Expansion". > Thank you! I wasn't aware of this bash feature. :-p To get similar behaviour I have extended globing turned on, but that doesn't won't work with dired. > Ehud. > --=20 Suvayu Open source is the future. It sets us free.