Emacs Lisp has
regexp-quote to quote any string to match it literally. Apparently, there is no equivalent function to quote an arbitrary replacement string to use it literally. I mean, what could I use instead of the imaginary
regexp-quote-replacement in the following contrived code?
(replace-regexp (regexp-quote "^$") (regexp-quote-replacement "\\&\\?"))
This code would be meant to replace a literal
^$ with a literal
 I know that I could use
replace-string in this case to achieve the same result.