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
|
||||||
|
(org-save-outline-visibility t
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
|
(show-all)
|
||||||
(while (re-search-forward org-babel-src-block-regexp nil t)
|
(while (re-search-forward org-babel-src-block-regexp nil t)
|
||||||
(let ((pos-end (match-end 0)))
|
(let ((pos-end (match-end 0)))
|
||||||
(goto-char (match-beginning 0))
|
(goto-char (match-beginning 0))
|
||||||
(org-babel-execute-src-block arg)
|
(org-babel-execute-src-block arg)
|
||||||
(goto-char pos-end)))))
|
(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