[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Subtree macro
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Subtree macro |
Date: |
Mon, 02 Jan 2017 19:41:13 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Hello,
Ian Dunn <address@hidden> 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-subtree)
> ,@body)))
No, there isn't.
Regards,
--
Nicolas Goaziou