diff options
| author | Tino Calancha | 2016-08-25 22:17:56 +0900 |
|---|---|---|
| committer | Tino Calancha | 2016-08-25 22:17:56 +0900 |
| commit | 5e84dcefb4b7fcf3b5af985345ed1ee5ef5df135 (patch) | |
| tree | 872bead49b7bcb8494df444d2f7448af4e45e932 /etc | |
| parent | 95c82efdb141029de89d9136a9ce4fe907de7c5e (diff) | |
| download | emacs-5e84dcefb4b7fcf3b5af985345ed1ee5ef5df135.tar.gz emacs-5e84dcefb4b7fcf3b5af985345ed1ee5ef5df135.zip | |
call-shell-region: New defun
Suggested by Stefan Monnier in Bug#22679.
* lisp/subr.el (call-shell-region): New defun; execute a command
in an inferior shell with the buffer region as input.
* lisp/simple.el (shell-command-on-region): Use it.
* lisp/gnus/message.el (message-do-fcc): Idem.
* doc/lispref/processes.texi: Document call-shell-region in the manual.
;* etc/NEWS: Add entry for this new function.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -56,6 +56,10 @@ affected by this, as SGI stopped supporting IRIX in December 2013. | |||
| 56 | * Changes in Emacs 25.2 | 56 | * Changes in Emacs 25.2 |
| 57 | 57 | ||
| 58 | +++ | 58 | +++ |
| 59 | ** The new funtion 'call-shell-region' executes a command in an | ||
| 60 | inferior shell with the buffer region as input. | ||
| 61 | |||
| 62 | +++ | ||
| 59 | ** The new user option 'shell-command-not-erase-buffer' controls | 63 | ** The new user option 'shell-command-not-erase-buffer' controls |
| 60 | if the output buffer is erased between shell commands; if non-nil, | 64 | if the output buffer is erased between shell commands; if non-nil, |
| 61 | the output buffer is not erased; this variable also controls where | 65 | the output buffer is not erased; this variable also controls where |