aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJuri Linkov2019-02-28 23:32:39 +0200
committerJuri Linkov2019-02-28 23:32:39 +0200
commit44b7436d4408ddfb72c1758d60395872791ae00d (patch)
tree5e8e95fadea6509e29e97374fc7445ec91165eae /doc
parent5d60229bf1a9a496102fc2a3ef9e57dcce7bef10 (diff)
downloademacs-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.texi12
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
1874Prompt for a regexp, and delete each line that contains a match for 1874Prompt for a regexp, and delete each line that contains a match for
1875it, operating on the text after point. This command deletes the 1875it, operating on the text after point. When the command finishes,
1876current line if it contains a match starting after point. If the 1876it prints the number of deleted matching lines.
1877region is active, it operates on the region instead; if a line 1877
1878partially contained in the region contains a match entirely contained 1878This command deletes the current line if it contains a match starting
1879in the region, it is deleted. 1879after point. If the region is active, it operates on the region
1880instead; if a line partially contained in the region contains a match
1881entirely contained in the region, it is deleted.
1880 1882
1881If a match is split across lines, @code{flush-lines} deletes all those 1883If a match is split across lines, @code{flush-lines} deletes all those
1882lines. It deletes the lines before starting to look for the next 1884lines. It deletes the lines before starting to look for the next