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:
parent
ee94addaac
commit
dc2baab09c
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user