emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 489bcacc7c: Add cross-reference to flush-lines


From: Stefan Kangas
Subject: emacs-29 489bcacc7c: Add cross-reference to flush-lines
Date: Mon, 12 Dec 2022 19:46:52 -0500 (EST)

branch: emacs-29
commit 489bcacc7c30207b9dbaeb90b9002255af8bfe64
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    Add cross-reference to flush-lines
    
    * lisp/replace.el (flush-lines, kill-matching-lines): Add
    cross-references between commands, using the names
    '(kill|delete)-matching-lines' for symmetry.  (Bug#59934)
---
 lisp/replace.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lisp/replace.el b/lisp/replace.el
index 6f59166e35..302cb65543 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -1039,7 +1039,10 @@ They are deleted _before_ looking for the next match.  
Hence, a match
 starting on the same line at which another match ended is ignored.
 
 Return the number of deleted matching lines.  When called interactively,
-also print the number."
+also print the number.
+
+If you want to not just delete the lines, but also add them to
+the kill ring, use the \\[kill-matching-lines] command instead."
   (interactive
    (progn
      (barf-if-buffer-read-only)
@@ -1104,7 +1107,7 @@ Return the number of killed matching lines.  When called
 interactively, also print the number.
 
 If you merely want to delete the lines, without adding them to
-the kill ring, the \\[flush-lines] command is faster."
+the kill ring, the \\[delete-matching-lines] command is faster."
   (interactive
    (progn
      (barf-if-buffer-read-only)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]