summaryrefslogtreecommitdiff
path: root/lisp/simple.el
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen <larsi@gnus.org>2011-07-02 22:59:18 +0200
committerLars Magne Ingebrigtsen <larsi@gnus.org>2011-07-02 22:59:18 +0200
commite83cc1f76a22efef9576097a92c9cfb32298cfbb (patch)
tree55ef02142f541a4429e13209e282150c9c01ae35 /lisp/simple.el
parente47ca23bcf56fc7d28e7edaa2785edeebecbdb51 (diff)
downloademacs-e83cc1f76a22efef9576097a92c9cfb32298cfbb.tar.gz
* simple.el (shell-command-on-region): Say where the error output
went if `shell-command-default-error-buffer' is set. Fixes: debbugs:6857
Diffstat (limited to 'lisp/simple.el')
-rw-r--r--lisp/simple.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index b36cf2ec3ec..6c078830a18 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -2531,7 +2531,10 @@ specifies the value of ERROR-BUFFER."
(let ((output
(if (and error-file
(< 0 (nth 7 (file-attributes error-file))))
- "some error output"
+ (format "some error output%s"
+ (if shell-command-default-error-buffer
+ (format " to the \"%s\" buffer" shell-command-default-error-buffer)
+ ""))
"no output")))
(cond ((null exit-status)
(message "(Shell command failed with error)"))