]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve the dired-guess-shell-alist-user doc string
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 29 May 2021 05:49:19 +0000 (07:49 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 29 May 2021 05:49:19 +0000 (07:49 +0200)
* lisp/dired-x.el (dired-guess-shell-alist-user): Document how
REGEXP is used (bug#17251).

lisp/dired-x.el

index 56f7f4724aca224d95a57b7e407e5bb708390eb6..6619a391673cc3b1ec0c629ae9e0c332ae9ecfa6 100644 (file)
@@ -941,10 +941,15 @@ Each element of this list looks like
 
     (REGEXP COMMAND...)
 
-where each COMMAND can either be a string or a Lisp expression that evaluates
+COMMAND will be used if REGEXP matches the file to be processed.
+If several files are to be processed, REGEXP has to match all the
+files.
+
+Each COMMAND can either be a string or a Lisp expression that evaluates
 to a string.  If this expression needs to consult the name of the file for
 which the shell commands are being requested, it can access that file name
 as the variable `file'.
+
 If several COMMANDs are given, the first one will be the default
 and the rest will be added temporarily to the history and can be retrieved
 with \\[previous-history-element] (M-p) .