]> code.delx.au - gnu-emacs/commitdiff
Add explicit arg REPLACE to the callers of `shell-command-on-region'.
authorJuri Linkov <juri@jurta.org>
Tue, 18 Jun 2013 20:24:44 +0000 (23:24 +0300)
committerJuri Linkov <juri@jurta.org>
Tue, 18 Jun 2013 20:24:44 +0000 (23:24 +0300)
* lisp/simple.el (shell-command-on-region): Doc fix.

* lisp/emulation/vi.el (vi-shell-op):
* lisp/emulation/vip.el (vip-execute-com, ex-command):
* lisp/emulation/viper-cmd.el (viper-exec-bang):
* lisp/emulation/viper-ex.el (ex-command): Add non-nil arg REPLACE to
the call of `shell-command-on-region'.

* lisp/mh-e/mh-alias.el (mh-alias-local-users): Add non-nil arg REPLACE to
the call of `shell-command-on-region'.

Fixes: debbugs:14637
lisp/ChangeLog
lisp/emulation/vi.el
lisp/emulation/vip.el
lisp/emulation/viper-cmd.el
lisp/emulation/viper-ex.el
lisp/mh-e/ChangeLog
lisp/mh-e/mh-alias.el
lisp/simple.el

index b58b5046cb93c3be1e0e7ecaef33803203bc01d3..0c3741d49a1961b680ee34c585f31a751bd1985b 100644 (file)
@@ -1,3 +1,13 @@
+2013-06-18  Juri Linkov  <juri@jurta.org>
+
+       * emulation/vi.el (vi-shell-op):
+       * emulation/vip.el (vip-execute-com, ex-command):
+       * emulation/viper-cmd.el (viper-exec-bang):
+       * emulation/viper-ex.el (ex-command): Add non-nil arg REPLACE to
+       the call of `shell-command-on-region'.  (Bug#14637)
+
+       * simple.el (shell-command-on-region): Doc fix.
+
 2013-06-18  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * emacs-lisp/eieio-custom.el: Remove misleading Version: header
index a59dd610c2141eab1bc5ae92f89acdbe1ca7b90c..9aae40c0d00ed4ced974df47a8df9ca8456a0b2d 100644 (file)
@@ -1148,7 +1148,8 @@ If char argument is given, it directs the output to a *temp* buffer."
       (cond ((null shell-command)
             (setq shell-command (read-string "!" nil))
             (setq vi-last-shell-command shell-command)))
-      (shell-command-on-region begin end shell-command (not (vi-prefix-char-value arg)))
+      (shell-command-on-region begin end shell-command (not (vi-prefix-char-value arg))
+                                                      (not (vi-prefix-char-value arg)))
       t)))
 
 (defun vi-shift-op (motion-command arg amount)
index ce131b854f56662d160a4a0d30d61d175f9cce38..b32e6e7e35d2d5bc073a6db05bce1052b612c550 100644 (file)
@@ -775,7 +775,7 @@ to vip-d-com for later use by vip-repeat"
                  (if (= com ?!)
                      (setq vip-last-shell-com (vip-read-string "!"))
                    vip-last-shell-com)
-                 t)))
+                 t t)))
              ((= com ?=)
               (save-excursion
                 (set-mark vip-com-point)
@@ -3042,7 +3042,7 @@ vip-s-string"
          (goto-char beg)
          (set-mark end)
          (vip-enlarge-region (point) (mark))
-         (shell-command-on-region (point) (mark) command t))
+         (shell-command-on-region (point) (mark) command t t))
        (goto-char beg)))))
 
 (defun ex-line-no ()
index b2e476befd4aa5835782f67c55dee93f07a74161..e7b371365e4fb0dfb3104c245f48b50ac82e4150 100644 (file)
@@ -1548,7 +1548,7 @@ as a Meta key and any number of multiple escapes are allowed."
                (car viper-shell-history)
                ))
        viper-last-shell-com)
-     t)))
+     t t)))
 
 (defun viper-exec-equals (m-com com)
   (save-excursion
index a2bdc28d2b5231ad1a96d0440af47a0a41a7bd3f..f4fcdfd1199071598c04fdc1803f87800b865804 100644 (file)
@@ -2176,7 +2176,7 @@ Please contact your system administrator. "
          (goto-char beg)
          (set-mark end)
          (viper-enlarge-region (point) (mark t))
-         (shell-command-on-region (point) (mark t) command t))
+         (shell-command-on-region (point) (mark t) command t t))
        (goto-char beg)))))
 
 (defun ex-compile ()
index 3db1780af63b51e123423861afa37fb085e08a42..d326132c92e872b28e7ac5c2c976e004d145b474 100644 (file)
@@ -1,3 +1,8 @@
+2013-06-18  Juri Linkov  <juri@jurta.org>
+
+       * mh-alias.el (mh-alias-local-users): Add non-nil arg REPLACE to
+       the call of `shell-command-on-region'.  (Bug#14637)
+
 2013-05-22  Glenn Morris  <rgm@gnu.org>
 
        * mh-speed.el (mh-speed-view):
index cc56c981809e5738b1e4fee448512d39421b74da..e97ba1dd83e351cba8a6383ce1e0915d2b3f3cdf 100644 (file)
@@ -141,7 +141,7 @@ Exclude all aliases already in `mh-alias-alist' from \"ali\""
             (insert-file-contents "/etc/passwd")))
        ((stringp mh-alias-local-users)
         (insert mh-alias-local-users "\n")
-        (shell-command-on-region (point-min) (point-max) mh-alias-local-users t)
+        (shell-command-on-region (point-min) (point-max) mh-alias-local-users t t)
         (goto-char (point-min))))
       (while  (< (point) (point-max))
         (cond
index 34ebc8f122f6f02a64e0d8b431f72f2eced8b826..363ce8407e6540d589f6c8b6e7a3c152ece7dfd2 100644 (file)
@@ -2849,10 +2849,11 @@ output is inserted in the current buffer, the buffer `*Shell
 Command Output*' is deleted.
 
 Optional fourth arg OUTPUT-BUFFER specifies where to put the
-command's output.  If the value is a buffer or buffer name, put
-the output there.  Any other value, excluding nil, means to
-insert the output in the current buffer.  In either case, the
-output is inserted after point (leaving mark after it).
+command's output.  If the value is a buffer or buffer name,
+put the output there.  If the value is nil, use the buffer
+`*Shell Command Output*'.  Any other value, excluding nil,
+means to insert the output in the current buffer.  In either case,
+the output is inserted after point (leaving mark after it).
 
 Optional fifth arg REPLACE, if non-nil, means to insert the
 output in place of text from START to END, putting point and mark