Pārlūkot izejas kodu

fixed minor bug in and improved efficiency of org-babel-map-src-blocks

* lisp/ob.el (org-babel-map-src-blocks): fixed minor bug in and
  improved efficiency of org-babel-map-src-blocks
Eric Schulte 14 gadi atpakaļ
vecāks
revīzija
b50125a1ac
1 mainītis faili ar 3 papildinājumiem un 4 dzēšanām
  1. 3 4
      lisp/ob.el

+ 3 - 4
lisp/ob.el

@@ -803,10 +803,9 @@ end-body --------- point at the end of the body"
 	       (body (match-string 5))
 	       (beg-body (match-beginning 5))
 	       (end-body (match-end 5)))
-	   (save-match-data ,@body))
-         (goto-char (match-end 0))))
-     (unless visited-p
-       (kill-buffer to-be-removed))
+	   ,@body
+	   (goto-char end-block))))
+     (unless visited-p (kill-buffer to-be-removed))
      (goto-char point)))
 
 (defvar org-file-properties)