From d08917090502cfe80b464f86e712ab9a83bf4dd6 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Fri, 20 Sep 2013 16:29:10 -0600 Subject: [PATCH] named results when keeping keyword of rm'd results * lisp/ob-core.el (org-babel-remove-result): Fix recent keep-keyword option to include named result blocks as well. --- lisp/ob-core.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index e2404c1fe..5a032a1f1 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -2166,7 +2166,7 @@ code ---- the results are extracted in the syntax of the source (when location (save-excursion (goto-char location) - (when (looking-at org-babel-result-regexp) + (when (looking-at (concat org-babel-result-regexp ".*$")) (delete-region (if keep-keyword (1+ (match-end 0)) (match-beginning 0)) (progn (forward-line 1) (org-babel-result-end))))))))