summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2013-09-20 16:29:10 -0600
committerEric Schulte <schulte.eric@gmail.com>2013-09-20 16:29:10 -0600
commitd08917090502cfe80b464f86e712ab9a83bf4dd6 (patch)
tree5fdfb64a1631cdac97eada0bdfb10d4d972ce4df
parent6215960d99b47e2bb5141bcd97b229d9c90c4db2 (diff)
downloadorg-mode-d08917090502cfe80b464f86e712ab9a83bf4dd6.tar.gz
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.
-rw-r--r--lisp/ob-core.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-core.el b/lisp/ob-core.el
index e2404c1..5a032a1 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))))))))