diff options
author | Dan Davison <davison@stats.ox.ac.uk> | 2010-10-29 20:43:56 +0100 |
---|---|---|
committer | Dan Davison <davison@stats.ox.ac.uk> | 2010-10-29 20:44:58 +0100 |
commit | 1ee54e0db744a75d40dd8ee580bad2534b30cbdf (patch) | |
tree | 039aaed8f567a72883368fab9888188b3a87eeb1 | |
parent | 9c833c456e9e47c3c2829c7a07c6f440fc0ee3a0 (diff) | |
download | org-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.el | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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)) |