aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/org/ob-eval.el
diff options
context:
space:
mode:
authorJoakim Verona2013-01-10 00:04:21 +0100
committerJoakim Verona2013-01-10 00:04:21 +0100
commit09708f70bd02e7a2edec79e1bcfd04fb9b7f48d3 (patch)
tree9376433d772aa4a302b231af1c601bcb4440c9f1 /lisp/org/ob-eval.el
parent0f9ee7aa0e6b57e28b31699a912356c24b959b01 (diff)
parent51fb5578777d1041feaab31651b65e09e1731d33 (diff)
downloademacs-09708f70bd02e7a2edec79e1bcfd04fb9b7f48d3.tar.gz
emacs-09708f70bd02e7a2edec79e1bcfd04fb9b7f48d3.zip
auto upstream
Diffstat (limited to 'lisp/org/ob-eval.el')
-rw-r--r--lisp/org/ob-eval.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/org/ob-eval.el b/lisp/org/ob-eval.el
index afa880bd90c..5884d33d786 100644
--- a/lisp/org/ob-eval.el
+++ b/lisp/org/ob-eval.el
@@ -30,6 +30,7 @@
30(eval-when-compile (require 'cl)) 30(eval-when-compile (require 'cl))
31 31
32(defvar org-babel-error-buffer-name "*Org-Babel Error Output*") 32(defvar org-babel-error-buffer-name "*Org-Babel Error Output*")
33(declare-function org-babel-temp-file "ob-core" (prefix &optional suffix))
33 34
34(defun org-babel-eval-error-notify (exit-code stderr) 35(defun org-babel-eval-error-notify (exit-code stderr)
35 "Open a buffer to display STDERR and a message with the value of EXIT-CODE." 36 "Open a buffer to display STDERR and a message with the value of EXIT-CODE."
@@ -142,6 +143,11 @@ specifies the value of ERROR-BUFFER."
142 shell-file-name 143 shell-file-name
143 "/bin/sh")) 144 "/bin/sh"))
144 exit-status) 145 exit-status)
146 ;; There is an error in `process-file' when `error-file' exists.
147 ;; This is fixed in Emacs trunk as of 2012-12-21; let's use this
148 ;; workaround for now.
149 (unless (file-remote-p default-directory)
150 (delete-file error-file))
145 (if (or replace 151 (if (or replace
146 (and output-buffer 152 (and output-buffer
147 (not (or (bufferp output-buffer) (stringp output-buffer))))) 153 (not (or (bufferp output-buffer) (stringp output-buffer)))))