1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-05 11:45:45 +00:00

(dired-guess-shell-alist-user): Clarify the example a bit

Fixes: debbugs:2030
This commit is contained in:
Lars Magne Ingebrigtsen 2011-07-11 15:46:46 +02:00
parent 8a93078b24
commit eea84fe52e
2 changed files with 6 additions and 6 deletions

View 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.

View 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)))