]> git.eshelyaron.com Git - emacs.git/commitdiff
(dired-guess-shell-alist-user): Clarify the example a bit
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 11 Jul 2011 13:46:46 +0000 (15:46 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 11 Jul 2011 13:46:46 +0000 (15:46 +0200)
Fixes: debbugs:2030
lisp/ChangeLog
lisp/dired-x.el

index 0245c0beb9dc5d327437ebf197c4d444c7981c27..a767eab06f48d4b45bca528173a67badf00b8570 100644 (file)
@@ -3,6 +3,7 @@
        * dired-x.el (dired-guess-default): Remove duplicate shell command
        entries (bug#2028).
        (dired-guess-default): Fix grammar in doc string (bug#2028).
+       (dired-guess-shell-alist-user): Clarify the example a bit (bug#2030).
 
        * subr.el (remove-duplicates): New conveniency function.
 
index e1a38847fa54e61e4e53469aed4061a50e24cc71..a341e4f07a17f4021d545845950448b3ced9b051 100644 (file)
@@ -1056,12 +1056,11 @@ You can set this variable in your ~/.emacs.  For example, to add rules for
 `.foo' and `.bar' files, write
 
  \(setq dired-guess-shell-alist-user
-       (list (list \"\\\\.foo\\\\'\" \"FOO-COMMAND\");; fixed rule
-              ;; possibly more rules ...
-              (list \"\\\\.bar\\\\'\";; rule with condition test
-                    '(if condition
-                          \"BAR-COMMAND-1\"
-                        \"BAR-COMMAND-2\")))\)"
+        '((\"\\\\.foo\\\\'\" \"FOO-COMMAND\")
+          (\"\\\\.bar\\\\'\"
+           (if condition
+              \"BAR-COMMAND-1\"
+            \"BAR-COMMAND-2\"))))"
   :group 'dired-x
   :type '(alist :key-type regexp :value-type (repeat sexp)))