Kaynağa Gözat

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.
Eric Schulte 11 yıl önce
ebeveyn
işleme
5dc5143578
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      lisp/ob-lob.el

+ 2 - 1
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)