unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* dired-x: dired-guess-shell-alist-user docstring
@ 2006-01-23 14:41 Dan Jacobson
  2006-01-24 16:50 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Jacobson @ 2006-01-23 14:41 UTC (permalink / raw)


(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$

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: dired-x: dired-guess-shell-alist-user docstring
  2006-01-23 14:41 dired-x: dired-guess-shell-alist-user docstring Dan Jacobson
@ 2006-01-24 16:50 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2006-01-24 16:50 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-01-24 16:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-23 14:41 dired-x: dired-guess-shell-alist-user docstring Dan Jacobson
2006-01-24 16:50 ` Kevin Rodgers

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).