Browse Source

org-babel-exp: fixed export bug

  the problem is that we were searching back to the previous source
  block before source block execution.
Eric Schulte 16 năm trước cách đây
mục cha
commit
4646bacfde
1 tập tin đã thay đổi với 3 bổ sung4 xóa
  1. 3 4
      contrib/babel/lisp/org-babel-exp.el

+ 3 - 4
contrib/babel/lisp/org-babel-exp.el

@@ -188,10 +188,9 @@ options are taken from `org-babel-default-header-args'."
 		  (format "=%s=" raw))
 	      (format "=%S=" raw))))))
       ('block
-          (save-excursion ;; org-exp-blocks places us at the end of the block
-            (re-search-backward org-babel-src-block-regexp nil t)
-            (org-babel-execute-src-block
-             nil nil (org-babel-merge-params params '((:results . "replace")))) ""))
+          (org-babel-execute-src-block
+           nil nil (org-babel-merge-params params '((:results . "replace"))))
+        "")
       ('lob
           (save-excursion
             (re-search-backward org-babel-lob-one-liner-regexp nil t)