New answers tagged


One thing you can try is to use async-shell-command. Tested with the following and works: (async-shell-command "python3 -c 'print(input(\"Test: \"))'")


Is this for interactive use? I suppose so. As the doc string for replace-regexp says: This function is for interactive use only; in Lisp code use `re-search-forward' and `replace-match' instead. Are you really asking about replace-regexp, and not query-replace-regexp? Because if you use the latter then the answer is included in Isearch by default: ...

Top 50 recent answers are included