bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dired "!" hints baffled by multiple sources of same answer


From: Kevin Rodgers
Subject: Re: dired "!" hints baffled by multiple sources of same answer
Date: Tue, 04 Mar 2003 12:12:33 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

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.

--
<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;";>Kevin Rodgers</a>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]