summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <eric.schulte@gmx.com>2012-09-05 12:02:48 -0600
committerEric Schulte <eric.schulte@gmx.com>2012-09-05 12:02:48 -0600
commit0a6165a5551549f9a1925f8766c0f162b091c408 (patch)
treea9dfffe130d22c80835db0c87403f83fdf6a2dea
parentc276eeebeecba23913547f62cf4b8122f0e8efa9 (diff)
downloadorg-mode-0a6165a5551549f9a1925f8766c0f162b091c408.tar.gz
widen buffer restrictions when inserting results
-rw-r--r--lisp/ob.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ob.el b/lisp/ob.el
index 660303c..263dfb0 100644
--- a/lisp/ob.el
+++ b/lisp/ob.el
@@ -1890,6 +1890,7 @@ code ---- the results are extracted in the syntax of the source
inside of a #+BEGIN_SRC block with the source-code
language set appropriately. Note this relies on the
optional LANG argument."
+ (save-restriction (widen)
(if (stringp result)
(progn
(setq result (org-no-properties result))
@@ -2010,7 +2011,7 @@ code ---- the results are extracted in the syntax of the source
(if (member "value" result-params)
(message "Code block returned no value.")
(message "Code block produced no output."))
- (message "Code block evaluation complete."))))
+ (message "Code block evaluation complete.")))))
(defun org-babel-remove-result (&optional info)
"Remove the result of the current source block."