[Top][All Lists]

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

Re: dired-x: dired-guess-shell-alist-user docstring

From: Kevin Rodgers
Subject: Re: dired-x: dired-guess-shell-alist-user docstring
Date: Tue, 24 Jan 2006 09:50:17 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

Dan Jacobson wrote:
(describe-variable (quote dired-guess-shell-alist-user)) says:
   For example, to add rules for `.foo' and `.bar' files, write

   (setq dired-guess-shell-alist-user
         (list (list "\\.foo\\'" "FOO-COMMAND");; fixed rule

Really .foo\\' ? How about .foo$

Yes.  "\\'" is the string representation of the \' regexp, which
matches the end of the string.  $ matches the end of the string
(as intended) or an embedded newline (which is not).

                ;; possibly more rules ...
                (list "\\.bar\'";; rule with condition test
Really .bar\' ? This time with one \ too? How about .bar$

Good catch, it should be "\\.bar\\'"

Kevin Rodgers

reply via email to

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