From 21fd1523be507417275bf43ef7e1cf5a9429de75 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Tue, 23 Aug 2011 09:46:32 -0600 Subject: [PATCH] Don't require full variable resolution when finding results * lisp/ob.el (org-babel-where-is-src-block-result): Don't try to resolve variables when simply checking if we're inside of a code block. --- lisp/ob.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob.el b/lisp/ob.el index ab6120fe6..7d6e31456 100644 --- a/lisp/ob.el +++ b/lisp/ob.el @@ -1387,7 +1387,7 @@ following the source block." (match-end 0)))) (name (if on-lob-line (nth 0 (org-babel-lob-get-info)) - (nth 4 (or info (org-babel-get-src-block-info))))) + (nth 4 (or info (org-babel-get-src-block-info 'light))))) (head (unless on-lob-line (org-babel-where-is-src-block-head))) found beg end) (when head (goto-char head))