From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Marius Hofert <marius.hofert@math.ethz.ch>
Newsgroups: gmane.emacs.help
Subject: dired-guess-shell-alist-user: How to match folders instead of file
	types?
Date: Tue, 25 Jun 2013 13:24:35 +0200
Message-ID: <CAM3-KjajDPxZmCF1FoJ0Y+zsQ1LbxrQ2JwoqJaGAJhgR8P=n6Q@mail.gmail.com>
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: ger.gmane.org 1372159543 28503 80.91.229.3 (25 Jun 2013 11:25:43 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 25 Jun 2013 11:25:43 +0000 (UTC)
To: Emacs help <help-gnu-emacs@gnu.org>
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 25 13:25:44 2013
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geh-help-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1UrRNX-0002Zt-JI
	for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Jun 2013 13:25:43 +0200
Original-Received: from localhost ([::1]:44001 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1UrRNW-0007AU-Hx
	for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Jun 2013 07:25:42 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36619)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <marius.hofert@gmail.com>) id 1UrRNA-0007AA-Ni
	for help-gnu-emacs@gnu.org; Tue, 25 Jun 2013 07:25:26 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <marius.hofert@gmail.com>) id 1UrRN7-0005RV-48
	for help-gnu-emacs@gnu.org; Tue, 25 Jun 2013 07:25:20 -0400
Original-Received: from mail-pd0-x235.google.com ([2607:f8b0:400e:c02::235]:37259)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <marius.hofert@gmail.com>) id 1UrRN6-0005RI-UD
	for help-gnu-emacs@gnu.org; Tue, 25 Jun 2013 07:25:17 -0400
Original-Received: by mail-pd0-f181.google.com with SMTP id 14so890635pdj.40
	for <help-gnu-emacs@gnu.org>; Tue, 25 Jun 2013 04:25:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:from:date:x-google-sender-auth:message-id
	:subject:to:content-type;
	bh=nE1lfNJeY32usD/6IJp0tVnNHdfl7nhVnzmdGMgE2FM=;
	b=EtrXcpBv5+sLgTcYDbK5TUGAtSeYLtdHi081U/pyPvrPj5ypqZ6YuwCnm+Dnaz5a2/
	OvIorRzmnwTqRk30Rtp42t5tfFNsNmLAgTBM3Tb3DSv23PXDJB9oAaskgxzQjZdGhzSL
	zSFPnPg9VQ93GSm0+DM9kIuT3l1My5ols3kTiKH7Tz/D+act8fmpb9TPON95e3lei7pu
	rSAM9Aq1NW6k90DnL/tBaDTRo5TpHHJuhuiZmVNzCL4VpeMsZF7SdVFF+AmudmuWhzwb
	91nFc2nmvxHGmz34+yV9I4YpPUH8tSV35rGsIYjhFjUHm1nTQUzn+lA1lGPTO2x2pN/D
	uccA==
X-Received: by 10.66.141.175 with SMTP id rp15mr31325615pab.214.1372159515521; 
	Tue, 25 Jun 2013 04:25:15 -0700 (PDT)
Original-Received: by 10.68.31.135 with HTTP; Tue, 25 Jun 2013 04:24:35 -0700 (PDT)
X-Google-Sender-Auth: OoRwcZRfFHSYk8fYSI1Wnrahms4
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
	(bad octet value).
X-Received-From: 2607:f8b0:400e:c02::235
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/help-gnu-emacs>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Xref: news.gmane.org gmane.emacs.help:91702
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/91702>

Hi,

I use ...

(setq dired-guess-shell-alist-user
      '(("\\.zip\\'" "(unzip ? &>/dev/null &)")
("\\.tar.gz\\'" "(tar xzf ? &>/dev/null &)")))

... to execute the corresponding command from dired-mode (on
M-!).  I am wondering how one can match *folders* (in contrast to
file types such as .zip, .tar.gz), such that M-! suggests a
command to be executed on folders?

Cheers,

Marius