瀏覽代碼

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.
Dan Davison 14 年之前
父節點
當前提交
1ee54e0db7
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      lisp/ob.el

+ 4 - 4
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))