(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 0245c0b..a767eab 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 e1a3884..a341e4f 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)))