how How to replace “(” with “(” in the regexp, Emacs/elisp flavor?
Question as title.
More specifically, I’m rather tired of having to type
in hope that I can conveniently forget about emacs’s idiosyncrasy in regexp during “interaction mode”. Except I cannot get the regexp right…
Since I started questioning, might as well ask another one: since lisp code is not supposed to use interactive functions, advicing
The replacement you has works well for me.
Take the text:
and try query-replace-regexp with your advice:
I didn’t have to put a backslash in front of the parentheses to get them to group. That said, this disables being able to match actual parentheses…
The reason the
Regarding advising interactive functions, lisp code can call interactive functions all it wants. A prime example is