Subject: bug#47981: [PATCH] Add newline and tab matching information to query-replace-regexp docstring.

From: Eric Skoglund <[email-masked]>
Date: Sun, 25 Apr 2021 11:28:04 +0000

"Stefan Kangas" <[email-masked]> writes:

>>
>> +When invoked interactivly, Matching a newline with `\n' will not work,
>                 ^ interactively
>                               ^ matching
>> +use `C-q C-j' instead.  Similarly to match a tab character (`\t')
>                            ^ I would delete the word "Similarly"

Thanks, forgot to flyspell..

// Eric Skoglund

From a07a1ed6407a9a7523dea26f655292751cc20273 Mon Sep 17 00:00:00 2001
From: Eric Skoglund <[email-masked]>
Date: Fri, 23 Apr 2021 22:10:07 +0200
Subject: [PATCH] Add newline and tab matching documentation to
 query-replace-regexp

* lisp/replace.el: Add \n and \t matching information to
query-replace-regexp docstring.
---
 lisp/replace.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lisp/replace.el b/lisp/replace.el
index b5dea61924..22d029321c 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -432,6 +432,9 @@ query-replace-regexp
 of the region.  Otherwise, operate from point to the end of the buffer's
 accessible portion.
 
+When invoked interactively, matching a newline with `\n' will not work,
+use `C-q C-j' instead.  To match a tab character (`\t') just press `TAB'.
+
 Use \\<minibuffer-local-map>\\[next-history-element] \
 to pull the last incremental search regexp to the minibuffer
 that reads REGEXP, or invoke replacements from
-- 
2.30.2