diff options
| author | Tino Calancha | 2017-03-31 17:27:08 +0900 |
|---|---|---|
| committer | Tino Calancha | 2017-03-31 17:27:08 +0900 |
| commit | 1da9a207669a3cf5d27ac1dd61543c1492e05360 (patch) | |
| tree | d82a538a97595e3c118c535cdf7ee0a92f353ca6 /doc | |
| parent | 3a11b3e330e88a42386ac3a635330ebd9c610827 (diff) | |
| download | emacs-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.texi | 18 |
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 |
| 723 | Mark all files with a certain extension for use in later commands. A @samp{.} | 723 | Mark all files with a certain extension for use in later commands. A @samp{.} |
| 724 | is not automatically prepended to the string entered, you must type it | 724 | is automatically prepended to the string entered when not present. |
| 725 | explicitly. | 725 | If invoked with prefix argument @kbd{C-u}, this command unmarks files instead. |
| 726 | If invoked with prefix argument @kbd{C-u}, this command unmark files instead. | ||
| 727 | If called with the @kbd{C-u C-u} prefix, asks for a character to use | 726 | If called with the @kbd{C-u C-u} prefix, asks for a character to use |
| 728 | as the marker, and marks files with it. | 727 | as the marker, and marks files with it. |
| 729 | 728 | ||
| 730 | When called from Lisp, @var{extension} may also be a list of extensions | 729 | When called from Lisp, @var{extension} may also be a list of extensions |
| 731 | and an optional argument @var{marker-char} specifies the marker used. | 730 | and an optional argument @var{marker-char} specifies the marker used. |
| 732 | 731 | ||
| 732 | @item dired-mark-suffix | ||
| 733 | @findex dired-mark-suffix | ||
| 734 | Mark all files with a certain suffix for use in later commands. A @samp{.} | ||
| 735 | is not automatically prepended to the string entered, you must type it | ||
| 736 | explicitly. This is different from @var{dired-mark-extension} which prepends | ||
| 737 | a @samp{.} if not present. | ||
| 738 | If invoked with prefix argument @kbd{C-u}, this command unmarks files instead. | ||
| 739 | If called with the @kbd{C-u C-u} prefix, asks for a character to use | ||
| 740 | as the marker, and marks files with it. | ||
| 741 | |||
| 742 | When called from Lisp, @var{suffix} may also be a list of suffixes | ||
| 743 | and 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 |
| 735 | Flag all files with a certain extension for deletion. A @samp{.} is | 747 | Flag all files with a certain extension for deletion. A @samp{.} is |