diff options
| author | Juri Linkov | 2019-02-28 23:32:39 +0200 |
|---|---|---|
| committer | Juri Linkov | 2019-02-28 23:32:39 +0200 |
| commit | 44b7436d4408ddfb72c1758d60395872791ae00d (patch) | |
| tree | 5e8e95fadea6509e29e97374fc7445ec91165eae /doc | |
| parent | 5d60229bf1a9a496102fc2a3ef9e57dcce7bef10 (diff) | |
| download | emacs-44b7436d4408ddfb72c1758d60395872791ae00d.tar.gz emacs-44b7436d4408ddfb72c1758d60395872791ae00d.zip | |
* lisp/replace.el (flush-lines): Return the number of deleted lines.
When called interactively, also print the number. (Bug#34520)
* doc/emacs/search.texi (Other Repeating Search): Update
flush-lines that prints the number of deleted lines.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/search.texi | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi index 25f0cc4183e..761fe929ae5 100644 --- a/doc/emacs/search.texi +++ b/doc/emacs/search.texi | |||
| @@ -1872,11 +1872,13 @@ region instead. | |||
| 1872 | @findex flush-lines | 1872 | @findex flush-lines |
| 1873 | @item M-x flush-lines | 1873 | @item M-x flush-lines |
| 1874 | Prompt for a regexp, and delete each line that contains a match for | 1874 | Prompt for a regexp, and delete each line that contains a match for |
| 1875 | it, operating on the text after point. This command deletes the | 1875 | it, operating on the text after point. When the command finishes, |
| 1876 | current line if it contains a match starting after point. If the | 1876 | it prints the number of deleted matching lines. |
| 1877 | region is active, it operates on the region instead; if a line | 1877 | |
| 1878 | partially contained in the region contains a match entirely contained | 1878 | This command deletes the current line if it contains a match starting |
| 1879 | in the region, it is deleted. | 1879 | after point. If the region is active, it operates on the region |
| 1880 | instead; if a line partially contained in the region contains a match | ||
| 1881 | entirely contained in the region, it is deleted. | ||
| 1880 | 1882 | ||
| 1881 | If a match is split across lines, @code{flush-lines} deletes all those | 1883 | If a match is split across lines, @code{flush-lines} deletes all those |
| 1882 | lines. It deletes the lines before starting to look for the next | 1884 | lines. It deletes the lines before starting to look for the next |