Subject: bug#59934: 28.2; Doc strings of `(kill|delete)-matching-lines'

From: Drew Adams <[email-masked]>
Date: Fri, 9 Dec 2022 23:14:30 +0000

The docstring of `kill-matching-lines' already says (just at the end):

  If you merely want to delete the lines, without adding them to
  the kill ring, the M-x flush-lines command is faster.

True. What's missing there is the name correspondence/similarity.
I think it would be more helpful if it used `M-x delete-matching-lines'.
Following that link, a user would see that the other name for that is `flush-lines'.

but the one for `delete-matching-lines'/`flush-lines' does not mention the kill- version.

Yup. Wouldn't hurt. No reason to copy to `kill-ring' if that's not really what you want. And some users might not realize the difference.