From ede24f8f97661983392900f86110e492d940ce24 Mon Sep 17 00:00:00 2001 From: Eric Skoglund Date: Sun, 2 May 2021 11:13:45 +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 (bug#47981). --- lisp/replace.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/replace.el b/lisp/replace.el index b5dea61924a..f427bb30b49 100644 --- a/lisp/replace.el +++ b/lisp/replace.el @@ -432,6 +432,9 @@ In Transient Mark mode, if the mark is active, operate on the contents 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 \\\\[next-history-element] \ to pull the last incremental search regexp to the minibuffer that reads REGEXP, or invoke replacements from -- 2.39.5