babel: org-babel-execute-buffer is no longer flummoxed by hidden subtrees
This commit is contained in:
parent
8d78778c89
commit
5d52daab10
|
@ -371,12 +371,14 @@ results already exist."
|
||||||
the current buffer."
|
the current buffer."
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(goto-char (point-min))
|
(org-save-outline-visibility t
|
||||||
(while (re-search-forward org-babel-src-block-regexp nil t)
|
(goto-char (point-min))
|
||||||
(let ((pos-end (match-end 0)))
|
(show-all)
|
||||||
(goto-char (match-beginning 0))
|
(while (re-search-forward org-babel-src-block-regexp nil t)
|
||||||
(org-babel-execute-src-block arg)
|
(let ((pos-end (match-end 0)))
|
||||||
(goto-char pos-end)))))
|
(goto-char (match-beginning 0))
|
||||||
|
(org-babel-execute-src-block arg)
|
||||||
|
(goto-char pos-end))))))
|
||||||
|
|
||||||
(defun org-babel-execute-subtree (&optional arg)
|
(defun org-babel-execute-subtree (&optional arg)
|
||||||
"Call `org-babel-execute-src-block' on every source block in
|
"Call `org-babel-execute-src-block' on every source block in
|
||||||
|
|
Loading…
Reference in New Issue