summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Davison <davison@stats.ox.ac.uk>2010-10-29 20:43:56 +0100
committerDan Davison <davison@stats.ox.ac.uk>2010-10-29 20:44:58 +0100
commit1ee54e0db744a75d40dd8ee580bad2534b30cbdf (patch)
tree039aaed8f567a72883368fab9888188b3a87eeb1
parent9c833c456e9e47c3c2829c7a07c6f440fc0ee3a0 (diff)
downloadorg-mode-1ee54e0db744a75d40dd8ee580bad2534b30cbdf.tar.gz
babel: Don't resolve variable references unless requested
* lisp/ob.el (org-babel-initiate-session): Don't resolve variable references unless prefix arg is supplied.
-rw-r--r--lisp/ob.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/ob.el b/lisp/ob.el
index af6f7fe..78d005a 100644
--- a/lisp/ob.el
+++ b/lisp/ob.el
@@ -465,11 +465,11 @@ session."
;;;###autoload
(defun org-babel-initiate-session (&optional arg info)
"Initiate session for current code block.
-If called with a prefix argument then evaluate the header arguments
-for the code block before entering the session. Copy the body
-of the code block to the kill ring."
+If called with a prefix argument then resolve any variable
+references in the header arguments and assign these variables in
+the session. Copy the body of the code block to the kill ring."
(interactive "P")
- (let* ((info (or info (org-babel-get-src-block-info)))
+ (let* ((info (or info (org-babel-get-src-block-info (not arg))))
(lang (nth 0 info))
(body (nth 1 info))
(params (nth 2 info))