aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Steingold2013-05-23 17:01:47 -0400
committerSam Steingold2013-05-23 17:01:47 -0400
commitb3531901c6c3cf932633b52ec96aff50470c997f (patch)
tree30b3a815d9d3792dcce7800c0aa2d9abc63d9d76
parent7c9e4be1db1d56b1122e84337075010ca9d653cc (diff)
downloademacs-b3531901c6c3cf932633b52ec96aff50470c997f.tar.gz
emacs-b3531901c6c3cf932633b52ec96aff50470c997f.zip
* 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>
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/simple.el2
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d4f2a185cf6..b37e0aad393 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12013-05-23 Sam Steingold <sds@gnu.org>
2
3 * simple.el (shell-command-on-region): Pass the `replace' argument
4 down to `call-process-region' to comply witht he doc as reported on
5 <http://stackoverflow.com/questions/16720458/emacs-noninteractive-call-to-shell-command-on-region-always-deletes-region>
6
12013-05-23 Stefan Monnier <monnier@iro.umontreal.ca> 72013-05-23 Stefan Monnier <monnier@iro.umontreal.ca>
2 8
3 * emacs-lisp/smie.el (smie-indent-forward-token) 9 * emacs-lisp/smie.el (smie-indent-forward-token)
diff --git a/lisp/simple.el b/lisp/simple.el
index f81b02b0acf..82c7100f589 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -2923,7 +2923,7 @@ interactively, this is t."
2923 (goto-char start) 2923 (goto-char start)
2924 (and replace (push-mark (point) 'nomsg)) 2924 (and replace (push-mark (point) 'nomsg))
2925 (setq exit-status 2925 (setq exit-status
2926 (call-process-region start end shell-file-name t 2926 (call-process-region start end shell-file-name replace
2927 (if error-file 2927 (if error-file
2928 (list t error-file) 2928 (list t error-file)
2929 t) 2929 t)