From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthias Meulien Newsgroups: gmane.emacs.help Subject: Re: emacs interface for the unix file(1) command Date: 09 Oct 2003 23:27:24 +0200 Organization: ...!#$@~? Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1065736178 31411 80.91.224.253 (9 Oct 2003 21:49:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Oct 2003 21:49:38 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 09 23:49:33 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A7if7-0006iq-00 for ; Thu, 09 Oct 2003 23:49:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A7ieT-0000Kk-SB for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Oct 2003 17:48:53 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!feeder2-1.proxad.net!news2-2.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.93 Original-Lines: 17 Original-NNTP-Posting-Date: 09 Oct 2003 23:32:52 MEST Original-NNTP-Posting-Host: 62.147.138.68 Original-X-Trace: 1065735172 news2-2.free.fr 27600 62.147.138.68:32840 Original-X-Complaints-To: abuse@proxad.net Original-Xref: shelby.stanford.edu gnu.emacs.help:117179 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13107 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13107 Roland Winkler wrote: > Is there also something that allows me to "do the right thing" > according to the output of file? Use `dired-do-shell-command' which is binded to the `!' key. For example,  ! file ? | grep PostScript - && gv ? RET will open the current file with GhostView if and only if it is a PostScript file; It works with list of files when using the process mark. Here `dired-aux' needs to be loaded. -- Matthias