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

Reply via email to