瀏覽代碼

org-babel-current-exec-src-block-head -> outermost

* lisp/ob-core.el (org-babel-execute-src-block): The
  org-babel-current-exec-src-block-head variable should point to the
  outermost code block.
Eric Schulte 11 年之前
父節點
當前提交
d6a9f1aa29
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lisp/ob-core.el

+ 2 - 1
lisp/ob-core.el

@@ -564,7 +564,8 @@ block."
       (let* ((params (if params
 			 (org-babel-process-params merged-params)
 		       (nth 2 info)))
-	     (org-babel-current-exec-src-block-head (nth 6 info))
+	     (org-babel-current-exec-src-block-head
+	      (or org-babel-current-exec-src-block-head (nth 6 info)))
 	     (cachep (and (not arg) (cdr (assoc :cache params))
 			   (string= "yes" (cdr (assoc :cache params)))))
 	     (new-hash (when cachep (org-babel-sha1-hash info)))