Explorar o código

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 %!s(int64=15) %!d(string=hai) anos
pai
achega
075016cdfa
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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
 inhibit insertion of results into the buffer."
   (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))
 	  (body (nth 1 info)))
       (setf (nth 2 info) (org-babel-exp-in-export-file