1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2025-02-02 20:55:13 +00:00

babel: protecting restrictions on `org-babel-execute-subtree'

This commit is contained in:
Eric Schulte 2010-06-07 11:51:30 -07:00
parent ee94addaac
commit dc2baab09c

View File

@ -384,10 +384,11 @@ the current buffer."
"Call `org-babel-execute-src-block' on every source block in
the current subtree."
(interactive "P")
(save-excursion
(org-narrow-to-subtree)
(org-babel-execute-buffer)
(widen)))
(save-restriction
(save-excursion
(org-narrow-to-subtree)
(org-babel-execute-buffer)
(widen))))
(defun org-babel-get-src-block-info (&optional header-vars-only)
"Get information of the current source block.