From 604a55edd6efc88590f5b37b2f62bb1b408d2c8a Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Sat, 28 Apr 2012 18:02:13 -0400 Subject: [PATCH] fixes a bug finding empty named results * lisp/ob.el (org-babel-find-named-result): Fix bug finding empty named results. --- lisp/ob.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob.el b/lisp/ob.el index ac6de9f1b..f3b7d6814 100644 --- a/lisp/ob.el +++ b/lisp/ob.el @@ -1498,7 +1498,7 @@ buffer or nil if no such result exists." (catch 'is-a-code-block (when (re-search-forward (concat org-babel-result-regexp - "[ \t]" (regexp-quote name) "[ \t\n\f\v\r]+") nil t) + "[ \t]" (regexp-quote name) "[ \t]*[\n\f\v\r]") nil t) (when (and (string= "name" (downcase (match-string 1))) (or (beginning-of-line 1) (looking-at org-babel-src-block-regexp) -- 2.11.4.GIT