---
 contrib/babel/lisp/org-babel.el |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/contrib/babel/lisp/org-babel.el b/contrib/babel/lisp/org-babel.el
index 01b730d..7fe4302 100644
--- a/contrib/babel/lisp/org-babel.el
+++ b/contrib/babel/lisp/org-babel.el
@@ -300,9 +300,10 @@ the current buffer."
   (save-excursion
     (goto-char (point-min))
     (while (re-search-forward org-babel-src-block-regexp nil t)
-      (goto-char (match-beginning 0))
-      (org-babel-execute-src-block arg)
-      (goto-char (match-end 0)))))
+      (let ((pos-end (match-end 0)))
+       (goto-char (match-beginning 0))
+       (org-babel-execute-src-block arg)
+       (goto-char pos-end)))))
 
 (defun org-babel-execute-subtree (&optional arg)
   "Call `org-babel-execute-src-block' on every source block in
-- 
1.6.4.4



_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to