From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: dired "!" hints baffled by multiple sources of same answer Date: Tue, 04 Mar 2003 12:12:33 -0700 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3E64FAA1.4040206@ihs.com> References: <87bs0x420f.fsf@jidanni.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1046805244 17096 80.91.224.249 (4 Mar 2003 19:14:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 4 Mar 2003 19:14:04 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 04 20:14:00 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18qHqh-0004O5-00 for ; Tue, 04 Mar 2003 20:13:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18qHqF-0001eu-01 for gnu-bug-gnu-emacs@m.gmane.org; Tue, 04 Mar 2003 14:12:43 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18qHq7-0001cd-00 for bug-gnu-emacs@prep.ai.mit.edu; Tue, 04 Mar 2003 14:12:35 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18qHq6-0001cS-00 for bug-gnu-emacs@prep.ai.mit.edu; Tue, 04 Mar 2003 14:12:35 -0500 Original-Received: from chx400.switch.ch ([130.59.10.2]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18qHq6-0001cO-00 for bug-gnu-emacs@prep.ai.mit.edu; Tue, 04 Mar 2003 14:12:34 -0500 Original-Received: from mail.fu-berlin.de ([160.45.11.165]) by chx400.switch.ch with esmtp (Exim 3.20 #1) id 18qHq4-0002Ou-00 for gnu-emacs-bug@moderators.isc.org; Tue, 04 Mar 2003 20:12:32 +0100 Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Tue, 4 Mar 2003 20:12:31 +0100 (MET) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Tue, 4 Mar 2003 20:12:31 +0100 (MET) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 34 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: fu-berlin.de 1046805151 59911694 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4556 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4556 Dan Jacobson wrote: > OK, I would but the dired-x Shell Command Guessing etc. info node are > not in the emacs info tree but instead next to it, at least on debian. > > [the dired-x Shell Command Guessing etc. info node] says "Dired only tries to guess a command for a single file, never for a > list of marked files." but in fact it does, if the marked files have > the same suffix it seems. But if it plans to use xloadimage on .jpg's > and use xloadimage on .gif's, then it should use xloadimage when > presented with a list that are all .jpg's and .gif's. dired-x.el says: ;;; * Parse `dired-guess-shell-alist-user' and ;;; `dired-guess-shell-alist-default' (in that order) for the first REGEXP ;;; that matches the first file in the file list. ;;; ;;; * If the REGEXP matches all the entries of the file list then evaluate ;;; COMMAND, which is either a string or a Lisp expression returning a ;;; string. COMMAND may be a list of commands. What are dired-guess-shell-alist-user and dired-guess-shell-alist-default set to? If they have an entry like ("\\.\\(gif\\|jpg\\)\\'" . "xloadimage") instead of (or in front of) 2 separate entries for GIF and JPEG files, then it should work the way you want. -- Kevin Rodgers