Commit b3531901 authored by Sam Steingold's avatar Sam Steingold
Browse files

* simple.el (shell-command-on-region): Pass the `replace' argument

down to `call-process-region' to comply with he doc as reported on
<http://stackoverflow.com/questions/16720458/emacs-noninteractive-call-to-shell-command-on-region-always-deletes-region>
parent 7c9e4be1
2013-05-23 Sam Steingold <sds@gnu.org>
* simple.el (shell-command-on-region): Pass the `replace' argument
down to `call-process-region' to comply witht he doc as reported on
<http://stackoverflow.com/questions/16720458/emacs-noninteractive-call-to-shell-command-on-region-always-deletes-region>
2013-05-23 Stefan Monnier <monnier@iro.umontreal.ca>
 
* emacs-lisp/smie.el (smie-indent-forward-token)
......
......@@ -2923,7 +2923,7 @@ interactively, this is t."
(goto-char start)
(and replace (push-mark (point) 'nomsg))
(setq exit-status
(call-process-region start end shell-file-name t
(call-process-region start end shell-file-name replace
(if error-file
(list t error-file)
t)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment