瀏覽代碼

ob-exp: resolve result hash in the original file

* lisp/ob-exp.el (org-babel-exp-results): On export, ensure that the
  result hash is resolved in the original org-mode file.
Eric Schulte 14 年之前
父節點
當前提交
075016cdfa
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lisp/ob-exp.el

+ 2 - 1
lisp/ob-exp.el

@@ -248,7 +248,8 @@ This function is called by `org-babel-exp-do-export'.  The code
 block will be evaluated.  Optional argument SILENT can be used to
 block will be evaluated.  Optional argument SILENT can be used to
 inhibit insertion of results into the buffer."
 inhibit insertion of results into the buffer."
   (when (and org-export-babel-evaluate
   (when (and org-export-babel-evaluate
-	     (not (equal hash (org-babel-result-hash))))
+	     (not (equal hash (org-babel-exp-in-export-file
+			       (org-babel-result-hash)))))
     (let ((lang (nth 0 info))
     (let ((lang (nth 0 info))
 	  (body (nth 1 info)))
 	  (body (nth 1 info)))
       (setf (nth 2 info) (org-babel-exp-in-export-file
       (setf (nth 2 info) (org-babel-exp-in-export-file