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.
This commit is contained in:
Eric Schulte 2013-06-06 10:59:27 -06:00
parent d6a9f1aa29
commit 5dc5143578
1 changed files with 2 additions and 1 deletions

View File

@ -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)