From 5dc5143578a2759611a5856de9bf9d1c7eba9283 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Thu, 6 Jun 2013 10:59:27 -0600 Subject: [PATCH] inline sets org-babel-current-exec-src-block-head * lisp/ob-lob.el (org-babel-lob-execute): Set the org-babel-current-exec-src-block-head variable when executing inline or lob style code. --- lisp/ob-lob.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ob-lob.el b/lisp/ob-lob.el index c779e34fb..91947f781 100644 --- a/lisp/ob-lob.el +++ b/lisp/ob-lob.el @@ -132,7 +132,8 @@ if so then run the appropriate source block from the Library." (cache-p (and (cdr (assoc :cache pre-params)) (string= "yes" (cdr (assoc :cache pre-params))))) (new-hash (when cache-p (org-babel-sha1-hash pre-info))) - (old-hash (when cache-p (org-babel-current-result-hash)))) + (old-hash (when cache-p (org-babel-current-result-hash))) + (org-babel-current-exec-src-block-head (point-marker))) (if (and cache-p (equal new-hash old-hash)) (save-excursion (goto-char (org-babel-where-is-src-block-result)) (forward-line 1)