浏览代码

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 年之前
父节点
当前提交
b50125a1ac
共有 1 个文件被更改,包括 3 次插入4 次删除
  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)