query-replace-compile-replacement
query-replace-compile-replacement is a compiled Lisp function in `replace.el
'.
(query-replace-compile-replacement TO REGEXP-FLAG)
Maybe convert a regexp replacement TO to Lisp.
Returns a list suitable for `perform-replace' if necessary,
the original string if not.