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.
This commit is contained in:
Eric Schulte 2011-08-23 09:46:32 -06:00
parent 63faebd64b
commit 21fd1523be
1 changed files with 1 additions and 1 deletions

View File

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