]> git.eshelyaron.com Git - emacs.git/commitdiff
* simple.el (shell-command-on-region): Say where the error output
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Sat, 2 Jul 2011 20:59:18 +0000 (22:59 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Sat, 2 Jul 2011 20:59:18 +0000 (22:59 +0200)
went if `shell-command-default-error-buffer' is set.

Fixes: debbugs:6857
lisp/ChangeLog
lisp/simple.el

index de13574aa54979c5c07efbbd1b5272483cacd851..9a154c06a3dffebfb3a3fae7c882e3fca4a99adc 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-02  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * simple.el (shell-command-on-region): Say where the error output
+       went if `shell-command-default-error-buffer' is set (bug#6857).
+
 2011-07-02  Ken Manheimer  <ken.manheimer@gmail.com>
 
        * allout.el (allout-yank-processing): Adjust cursor position for
index b36cf2ec3ecfb84cf8bbaea8753e74d347723614..6c078830a180aa8de4cc97b1dee045578f7c16c8 100644 (file)
@@ -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)"))