aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorTino Calancha2017-03-31 17:27:08 +0900
committerTino Calancha2017-03-31 17:27:08 +0900
commit1da9a207669a3cf5d27ac1dd61543c1492e05360 (patch)
treed82a538a97595e3c118c535cdf7ee0a92f353ca6 /doc
parent3a11b3e330e88a42386ac3a635330ebd9c610827 (diff)
downloademacs-1da9a207669a3cf5d27ac1dd61543c1492e05360.tar.gz
emacs-1da9a207669a3cf5d27ac1dd61543c1492e05360.zip
dired-mark-suffix: New command
Now dired-mark-extension prepends '.' to extension when not present. Add command dired-mark-suffix to preserve the previous behaviour (Bug#25942). * lisp/dired-x.el (dired-mark-suffix): New command; mark files ending in a given suffix. (dired--mark-suffix-interactive-spec): New defun. (dired-mark-extension, dired-mark-suffix): Use it. * doc/misc/dired-x.texi (Advanced Mark Commands): Update manual. * test/lisp/dired-x-tests.el: New test suite; add test for these features. ; * etc/NEWS (Incompatible Lisp Changes in Emacs 26.1): ; Mention these changes.
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/dired-x.texi18
1 files changed, 15 insertions, 3 deletions
diff --git a/doc/misc/dired-x.texi b/doc/misc/dired-x.texi
index 1e6f4b03bb0..bf103256f29 100644
--- a/doc/misc/dired-x.texi
+++ b/doc/misc/dired-x.texi
@@ -721,15 +721,27 @@ variable @code{window-min-height}.
721@item dired-mark-extension 721@item dired-mark-extension
722@findex dired-mark-extension 722@findex dired-mark-extension
723Mark all files with a certain extension for use in later commands. A @samp{.} 723Mark all files with a certain extension for use in later commands. A @samp{.}
724is not automatically prepended to the string entered, you must type it 724is automatically prepended to the string entered when not present.
725explicitly. 725If invoked with prefix argument @kbd{C-u}, this command unmarks files instead.
726If invoked with prefix argument @kbd{C-u}, this command unmark files instead.
727If called with the @kbd{C-u C-u} prefix, asks for a character to use 726If called with the @kbd{C-u C-u} prefix, asks for a character to use
728as the marker, and marks files with it. 727as the marker, and marks files with it.
729 728
730When called from Lisp, @var{extension} may also be a list of extensions 729When called from Lisp, @var{extension} may also be a list of extensions
731and an optional argument @var{marker-char} specifies the marker used. 730and an optional argument @var{marker-char} specifies the marker used.
732 731
732@item dired-mark-suffix
733@findex dired-mark-suffix
734Mark all files with a certain suffix for use in later commands. A @samp{.}
735is not automatically prepended to the string entered, you must type it
736explicitly. This is different from @var{dired-mark-extension} which prepends
737a @samp{.} if not present.
738If invoked with prefix argument @kbd{C-u}, this command unmarks files instead.
739If called with the @kbd{C-u C-u} prefix, asks for a character to use
740as the marker, and marks files with it.
741
742When called from Lisp, @var{suffix} may also be a list of suffixes
743and an optional argument @var{marker-char} specifies the marker used.
744
733@item dired-flag-extension 745@item dired-flag-extension
734@findex dired-flag-extension 746@findex dired-flag-extension
735Flag all files with a certain extension for deletion. A @samp{.} is 747Flag all files with a certain extension for deletion. A @samp{.} is