Variable: query-replace-help
query-replace-help is a variable defined in replace.el.gz.
Value
"Type \\`SPC' or \\`y' to replace one match, Delete or \\`n' to skip to next,\n\\`RET' or \\`q' to exit, Period to replace one match and exit,\n\\`,' to replace but not move point immediately,\n\\`!' to replace all remaining matches in this buffer with no more questions,\n\\`C-r' to enter recursive edit (\\[exit-recursive-edit] to get out again),\n\\`C-w' to delete match and then enter recursive edit,\n\\`^' to move point back to previous match,\n\\`u' to undo previous replacement,\n\\`U' to undo all replacements,\n\\`e' to edit the replacement string.\n\\`E' to edit the replacement string with exact case.\n\\`d' to display the diff buffer with all replacements.\n\\`C-l' to clear the screen, redisplay, and offer same replacement again,\n\\`Y' to replace all remaining matches in all remaining buffers (in\nmulti-buffer replacements) with no more questions,\n\\`N' (in multi-buffer replacements) to skip to the next buffer without\nreplacing remaining matches in the current buffer.\nAny other character exits the interactive replacement loop, and is then\nre-executed as a normal key sequence."
Documentation
Help message while in query-replace.
Source Code
;; Defined in /usr/src/emacs/lisp/replace.el.gz
;; It would be nice to use \\[...], but there is no reasonable way
;; to make that display both SPC and Y.
(defconst query-replace-help
"Type \\`SPC' or \\`y' to replace one match, Delete or \\`n' to skip to next,
\\`RET' or \\`q' to exit, Period to replace one match and exit,
\\`,' to replace but not move point immediately,
\\`!' to replace all remaining matches in this buffer with no more questions,
\\`C-r' to enter recursive edit (\\[exit-recursive-edit] to get out again),
\\`C-w' to delete match and then enter recursive edit,
\\`^' to move point back to previous match,
\\`u' to undo previous replacement,
\\`U' to undo all replacements,
\\`e' to edit the replacement string.
\\`E' to edit the replacement string with exact case.
\\`d' to display the diff buffer with all replacements.
\\`C-l' to clear the screen, redisplay, and offer same replacement again,
\\`Y' to replace all remaining matches in all remaining buffers (in
multi-buffer replacements) with no more questions,
\\`N' (in multi-buffer replacements) to skip to the next buffer without
replacing remaining matches in the current buffer.
Any other character exits the interactive replacement loop, and is then
re-executed as a normal key sequence."
"Help message while in `query-replace'.")