From bbcf17b96920e5c8cfe220e308b96e4f7b4ad9ed Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Fri, 22 Nov 2013 08:18:05 -0700 Subject: [PATCH] set location info parameter for inline src blocks * lisp/ob-core.el (org-babel-execute-src-block): Set location info parameter for inline src blocks. (org-babel-get-src-block-info): Set location info parameter for inline src blocks. --- lisp/ob-core.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index 3df0f5c56..ba69b2c89 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -277,6 +277,7 @@ Returns a list (setq name (org-no-properties (match-string 3))))) ;; inline source block (when (org-babel-get-inline-src-block-matches) + (setq head (match-beginning 0)) (setq info (org-babel-parse-inline-src-block-match)))) ;; resolve variable references and add summary parameters (when (and info (not light)) @@ -615,7 +616,10 @@ block." (let* ((org-babel-current-src-block-location (or org-babel-current-src-block-location (nth 6 info) - (org-babel-where-is-src-block-head))) + (org-babel-where-is-src-block-head) + ;; inline src block + (and (org-babel-get-inline-src-block-matches) + (match-beginning 0)))) (info (if info (copy-tree info) (org-babel-get-src-block-info))) -- 2.11.4.GIT