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: Filtering files in dired while invoking Date: Mon, 30 Aug 2010 12:26:58 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1283197868 9503 80.91.229.12 (30 Aug 2010 19:51:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Aug 2010 19:51:08 +0000 (UTC) To: Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 30 21:51:07 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 1OqANc-0003HY-Em for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Aug 2010 21:51:07 +0200 Original-Received: from localhost ([127.0.0.1]:50879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqA3K-0002qN-Ma for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Aug 2010 15:29:58 -0400 Original-Received: from [140.186.70.92] (port=36444 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqA0o-0001rn-0N for help-gnu-emacs@gnu.org; Mon, 30 Aug 2010 15:27:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OqA0l-0004Eu-Lt for help-gnu-emacs@gnu.org; Mon, 30 Aug 2010 15:27:20 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:60631) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqA0l-0004EQ-Hn for help-gnu-emacs@gnu.org; Mon, 30 Aug 2010 15:27:19 -0400 Original-Received: by wyb36 with SMTP id 36so8417965wyb.0 for ; Mon, 30 Aug 2010 12:27:18 -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:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=MokllY+VLat8NDBVWZeQ1xyLnOIvREBXgxuy0prGegc=; b=deIp7A7/J5CsOhf9HG8lriKnl0gpOB434LHdqaHwmklex4EO5BPahTaMCah5SygJa4 RyXEMUgDhHgdbEE27XdK+egE6mGc27aYImMw0vxk8Cv2snvLExDe/C1z973mZOVwfjye /eVJMlXi9w27sSqPDmga8mD5agOpoPpPOz9uY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; b=Ol6aeOEIO5fOii3E4VqpMopKcFsur6S71okuYUm2YG28Xo51xXAXj9IuODCsKqwPN3 JDi2L/BettfwUCr8h5tR3kFY7ojMIl2aHIRskk2gpnlVgU2X4jls2exKV7+5JbQfR/Qf 7up3sGPNmp+UbuAAPLfbdBIUOzupH1+n5GeIs= Original-Received: by 10.227.137.76 with SMTP id v12mr5593851wbt.113.1283196438198; Mon, 30 Aug 2010 12:27:18 -0700 (PDT) Original-Received: by 10.216.192.168 with HTTP; Mon, 30 Aug 2010 12:26:58 -0700 (PDT) X-Google-Sender-Auth: qCB1PSsI9NMMjZFx-ch58Uvh48w 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:74836 Archived-At: 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.