Explorar el 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 hace 14 años
padre
commit
075016cdfa
Se han modificado 1 ficheros con 2 adiciones y 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
 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