Pārlūkot izejas kodu

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.
Eric Schulte 11 gadi atpakaļ
vecāks
revīzija
d089170905
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      lisp/ob-core.el

+ 1 - 1
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))))))))