diff options
| author | Juri Linkov | 2013-06-18 23:24:44 +0300 |
|---|---|---|
| committer | Juri Linkov | 2013-06-18 23:24:44 +0300 |
| commit | 0950aa27a260158ab01e434281d7ea0ee9f8d023 (patch) | |
| tree | 27e05c137176fc829cb73318fc7c18aa63f2a39f | |
| parent | 8fbcca1658ad9604616f8fa9d2223d9993007e47 (diff) | |
| download | emacs-0950aa27a260158ab01e434281d7ea0ee9f8d023.tar.gz emacs-0950aa27a260158ab01e434281d7ea0ee9f8d023.zip | |
Add explicit arg REPLACE to the callers of `shell-command-on-region'.
* 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
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/emulation/vi.el | 3 | ||||
| -rw-r--r-- | lisp/emulation/vip.el | 4 | ||||
| -rw-r--r-- | lisp/emulation/viper-cmd.el | 2 | ||||
| -rw-r--r-- | lisp/emulation/viper-ex.el | 2 | ||||
| -rw-r--r-- | lisp/mh-e/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mh-e/mh-alias.el | 2 | ||||
| -rw-r--r-- | lisp/simple.el | 9 |
8 files changed, 27 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b58b5046cb9..0c3741d49a1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2013-06-18 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * emulation/vi.el (vi-shell-op): | ||
| 4 | * emulation/vip.el (vip-execute-com, ex-command): | ||
| 5 | * emulation/viper-cmd.el (viper-exec-bang): | ||
| 6 | * emulation/viper-ex.el (ex-command): Add non-nil arg REPLACE to | ||
| 7 | the call of `shell-command-on-region'. (Bug#14637) | ||
| 8 | |||
| 9 | * simple.el (shell-command-on-region): Doc fix. | ||
| 10 | |||
| 1 | 2013-06-18 Stefan Monnier <monnier@iro.umontreal.ca> | 11 | 2013-06-18 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 12 | ||
| 3 | * emacs-lisp/eieio-custom.el: Remove misleading Version: header | 13 | * emacs-lisp/eieio-custom.el: Remove misleading Version: header |
diff --git a/lisp/emulation/vi.el b/lisp/emulation/vi.el index a59dd610c21..9aae40c0d00 100644 --- a/lisp/emulation/vi.el +++ b/lisp/emulation/vi.el | |||
| @@ -1148,7 +1148,8 @@ If char argument is given, it directs the output to a *temp* buffer." | |||
| 1148 | (cond ((null shell-command) | 1148 | (cond ((null shell-command) |
| 1149 | (setq shell-command (read-string "!" nil)) | 1149 | (setq shell-command (read-string "!" nil)) |
| 1150 | (setq vi-last-shell-command shell-command))) | 1150 | (setq vi-last-shell-command shell-command))) |
| 1151 | (shell-command-on-region begin end shell-command (not (vi-prefix-char-value arg))) | 1151 | (shell-command-on-region begin end shell-command (not (vi-prefix-char-value arg)) |
| 1152 | (not (vi-prefix-char-value arg))) | ||
| 1152 | t))) | 1153 | t))) |
| 1153 | 1154 | ||
| 1154 | (defun vi-shift-op (motion-command arg amount) | 1155 | (defun vi-shift-op (motion-command arg amount) |
diff --git a/lisp/emulation/vip.el b/lisp/emulation/vip.el index ce131b854f5..b32e6e7e35d 100644 --- a/lisp/emulation/vip.el +++ b/lisp/emulation/vip.el | |||
| @@ -775,7 +775,7 @@ to vip-d-com for later use by vip-repeat" | |||
| 775 | (if (= com ?!) | 775 | (if (= com ?!) |
| 776 | (setq vip-last-shell-com (vip-read-string "!")) | 776 | (setq vip-last-shell-com (vip-read-string "!")) |
| 777 | vip-last-shell-com) | 777 | vip-last-shell-com) |
| 778 | t))) | 778 | t t))) |
| 779 | ((= com ?=) | 779 | ((= com ?=) |
| 780 | (save-excursion | 780 | (save-excursion |
| 781 | (set-mark vip-com-point) | 781 | (set-mark vip-com-point) |
| @@ -3042,7 +3042,7 @@ vip-s-string" | |||
| 3042 | (goto-char beg) | 3042 | (goto-char beg) |
| 3043 | (set-mark end) | 3043 | (set-mark end) |
| 3044 | (vip-enlarge-region (point) (mark)) | 3044 | (vip-enlarge-region (point) (mark)) |
| 3045 | (shell-command-on-region (point) (mark) command t)) | 3045 | (shell-command-on-region (point) (mark) command t t)) |
| 3046 | (goto-char beg))))) | 3046 | (goto-char beg))))) |
| 3047 | 3047 | ||
| 3048 | (defun ex-line-no () | 3048 | (defun ex-line-no () |
diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el index b2e476befd4..e7b371365e4 100644 --- a/lisp/emulation/viper-cmd.el +++ b/lisp/emulation/viper-cmd.el | |||
| @@ -1548,7 +1548,7 @@ as a Meta key and any number of multiple escapes are allowed." | |||
| 1548 | (car viper-shell-history) | 1548 | (car viper-shell-history) |
| 1549 | )) | 1549 | )) |
| 1550 | viper-last-shell-com) | 1550 | viper-last-shell-com) |
| 1551 | t))) | 1551 | t t))) |
| 1552 | 1552 | ||
| 1553 | (defun viper-exec-equals (m-com com) | 1553 | (defun viper-exec-equals (m-com com) |
| 1554 | (save-excursion | 1554 | (save-excursion |
diff --git a/lisp/emulation/viper-ex.el b/lisp/emulation/viper-ex.el index a2bdc28d2b5..f4fcdfd1199 100644 --- a/lisp/emulation/viper-ex.el +++ b/lisp/emulation/viper-ex.el | |||
| @@ -2176,7 +2176,7 @@ Please contact your system administrator. " | |||
| 2176 | (goto-char beg) | 2176 | (goto-char beg) |
| 2177 | (set-mark end) | 2177 | (set-mark end) |
| 2178 | (viper-enlarge-region (point) (mark t)) | 2178 | (viper-enlarge-region (point) (mark t)) |
| 2179 | (shell-command-on-region (point) (mark t) command t)) | 2179 | (shell-command-on-region (point) (mark t) command t t)) |
| 2180 | (goto-char beg))))) | 2180 | (goto-char beg))))) |
| 2181 | 2181 | ||
| 2182 | (defun ex-compile () | 2182 | (defun ex-compile () |
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index 3db1780af63..d326132c92e 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-06-18 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * mh-alias.el (mh-alias-local-users): Add non-nil arg REPLACE to | ||
| 4 | the call of `shell-command-on-region'. (Bug#14637) | ||
| 5 | |||
| 1 | 2013-05-22 Glenn Morris <rgm@gnu.org> | 6 | 2013-05-22 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * mh-speed.el (mh-speed-view): | 8 | * mh-speed.el (mh-speed-view): |
diff --git a/lisp/mh-e/mh-alias.el b/lisp/mh-e/mh-alias.el index cc56c981809..e97ba1dd83e 100644 --- a/lisp/mh-e/mh-alias.el +++ b/lisp/mh-e/mh-alias.el | |||
| @@ -141,7 +141,7 @@ Exclude all aliases already in `mh-alias-alist' from \"ali\"" | |||
| 141 | (insert-file-contents "/etc/passwd"))) | 141 | (insert-file-contents "/etc/passwd"))) |
| 142 | ((stringp mh-alias-local-users) | 142 | ((stringp mh-alias-local-users) |
| 143 | (insert mh-alias-local-users "\n") | 143 | (insert mh-alias-local-users "\n") |
| 144 | (shell-command-on-region (point-min) (point-max) mh-alias-local-users t) | 144 | (shell-command-on-region (point-min) (point-max) mh-alias-local-users t t) |
| 145 | (goto-char (point-min)))) | 145 | (goto-char (point-min)))) |
| 146 | (while (< (point) (point-max)) | 146 | (while (< (point) (point-max)) |
| 147 | (cond | 147 | (cond |
diff --git a/lisp/simple.el b/lisp/simple.el index 34ebc8f122f..363ce8407e6 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -2849,10 +2849,11 @@ output is inserted in the current buffer, the buffer `*Shell | |||
| 2849 | Command Output*' is deleted. | 2849 | Command Output*' is deleted. |
| 2850 | 2850 | ||
| 2851 | Optional fourth arg OUTPUT-BUFFER specifies where to put the | 2851 | Optional fourth arg OUTPUT-BUFFER specifies where to put the |
| 2852 | command's output. If the value is a buffer or buffer name, put | 2852 | command's output. If the value is a buffer or buffer name, |
| 2853 | the output there. Any other value, excluding nil, means to | 2853 | put the output there. If the value is nil, use the buffer |
| 2854 | insert the output in the current buffer. In either case, the | 2854 | `*Shell Command Output*'. Any other value, excluding nil, |
| 2855 | output is inserted after point (leaving mark after it). | 2855 | means to insert the output in the current buffer. In either case, |
| 2856 | the output is inserted after point (leaving mark after it). | ||
| 2856 | 2857 | ||
| 2857 | Optional fifth arg REPLACE, if non-nil, means to insert the | 2858 | Optional fifth arg REPLACE, if non-nil, means to insert the |
| 2858 | output in place of text from START to END, putting point and mark | 2859 | output in place of text from START to END, putting point and mark |