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 ( 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)))

No, there isn't.

Regards,

-- 
Nicolas Goaziou



[O] Subtree macro

2017-01-02 Thread Ian Dunn

Is there something like this macro in org?

(defmacro org-with-subtree ( 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