Re: [O] Subtree macro

2017-01-02 Thread Nicolas Goaziou
Hello, Ian Dunn writes: > 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-subtre

[O] Subtree macro

2017-01-02 Thread Ian Dunn
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