aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/misc/dired-x.texi3
-rw-r--r--lisp/dired-x.el14
2 files changed, 14 insertions, 3 deletions
diff --git a/doc/misc/dired-x.texi b/doc/misc/dired-x.texi
index 474dd0a5208..2391852ca0f 100644
--- a/doc/misc/dired-x.texi
+++ b/doc/misc/dired-x.texi
@@ -710,7 +710,8 @@ variable @code{window-min-height}.
710@findex dired-mark-extension 710@findex dired-mark-extension
711Mark all files with a certain extension for use in later commands. A @samp{.} 711Mark all files with a certain extension for use in later commands. A @samp{.}
712is not automatically prepended to the string entered, you must type it 712is not automatically prepended to the string entered, you must type it
713explicitly. 713explicitly. If invoked with a prefix argument, this command asks for
714a character to use as the marker.
714 715
715When called from Lisp, @var{extension} may also be a list of extensions 716When called from Lisp, @var{extension} may also be a list of extensions
716and an optional argument @var{marker-char} specifies the marker used. 717and an optional argument @var{marker-char} specifies the marker used.
diff --git a/lisp/dired-x.el b/lisp/dired-x.el
index 41c2256ec6f..7d73c42befb 100644
--- a/lisp/dired-x.el
+++ b/lisp/dired-x.el
@@ -333,8 +333,18 @@ See also the functions:
333 "Mark all files with a certain EXTENSION for use in later commands. 333 "Mark all files with a certain EXTENSION for use in later commands.
334A `.' is *not* automatically prepended to the string entered. 334A `.' is *not* automatically prepended to the string entered.
335EXTENSION may also be a list of extensions instead of a single one. 335EXTENSION may also be a list of extensions instead of a single one.
336Optional MARKER-CHAR is marker to use." 336Optional MARKER-CHAR is marker to use.
337 (interactive "sMarking extension: \nP") 337Interactively, ask for EXTENSION, and if invoked with a prefix
338argument, for MARKER-CHAR as well."
339 (interactive
340 (list (read-string "Marking extension: ")
341 (and current-prefix-arg
342 (let* ((dflt (char-to-string dired-marker-char))
343 (input (read-string
344 (format
345 "Marker character to use (default %s): " dflt)
346 nil nil dflt)))
347 (aref input 0)))))
338 (or (listp extension) 348 (or (listp extension)
339 (setq extension (list extension))) 349 (setq extension (list extension)))
340 (dired-mark-files-regexp 350 (dired-mark-files-regexp