[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Subtree macro
From: |
Ian Dunn |
Subject: |
[O] Subtree macro |
Date: |
Mon, 02 Jan 2017 13:12:18 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Is there something like this macro in org?
(defmacro org-with-subtree (&rest body)
"Evaluate BODY with the buffer narrowed to the current subtree."
(declare (debug (body)))
`(save-mark-and-excursion
(save-restriction
(org-narrow-to-subtree)
,@body)))
--
Ian Dunn
- [O] Subtree macro,
Ian Dunn <=