Variable: query-replace-help
query-replace-help is a variable defined in replace.el.gz.
Value
"Type Space or `y' to replace one match, Delete or `n' to skip to next,\nRET or `q' to exit, Period to replace one match and exit,\nComma to replace but not move point immediately,\nC-r to enter recursive edit (\\[exit-recursive-edit] to get out again),\nC-w to delete match and recursive edit,\nC-l to clear the screen, redisplay, and offer same replacement again,\n! to replace all remaining matches in this buffer with no more questions,\n^ to move point back to previous match,\nu to undo previous replacement,\nU to undo all replacements,\nE to edit the replacement string.\nIn multi-buffer replacements type `Y' to replace all remaining\nmatches in all remaining buffers with no more questions,\n`N' to skip to the next buffer without replacing remaining matches\nin the current buffer."
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 Space 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,
Comma to replace but not move point immediately,
C-r to enter recursive edit (\\[exit-recursive-edit] to get out again),
C-w to delete match and recursive edit,
C-l to clear the screen, redisplay, and offer same replacement again,
! to replace all remaining matches in this buffer with no more questions,
^ to move point back to previous match,
u to undo previous replacement,
U to undo all replacements,
E to edit the replacement string.
In multi-buffer replacements type `Y' to replace all remaining
matches in all remaining buffers with no more questions,
`N' to skip to the next buffer without replacing remaining matches
in the current buffer."
"Help message while in `query-replace'.")