From 9ce7d60076b43e12da06128b5222e3d3299a9b79 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Thu, 3 Mar 2011 15:53:25 -0700 Subject: [PATCH] ob-exp: fix export for inline source blocks * lisp/ob-exp.el (org-babel-exp-results): Don't use cached results if there is no hash. --- lisp/ob-exp.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/ob-exp.el b/lisp/ob-exp.el index 06e310e38..7578b7654 100644 --- a/lisp/ob-exp.el +++ b/lisp/ob-exp.el @@ -248,8 +248,9 @@ 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-exp-in-export-file (nth 0 info) - (org-babel-result-hash))))) + (not (and hash + (equal hash (org-babel-exp-in-export-file (nth 0 info) + (org-babel-result-hash)))))) (let ((lang (nth 0 info)) (body (nth 1 info))) ;; skip code blocks which we can't evaluate