From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Subtree macro Date: Mon, 02 Jan 2017 19:41:13 +0100 Message-ID: <87h95hl2ye.fsf@nicolasgoaziou.fr> References: <87y3ytnxfh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cO7Xu-00084k-Lg for emacs-orgmode@gnu.org; Mon, 02 Jan 2017 13:41:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cO7Xt-0005Hq-NP for emacs-orgmode@gnu.org; Mon, 02 Jan 2017 13:41:22 -0500 In-Reply-To: <87y3ytnxfh.fsf@gnu.org> (Ian Dunn's message of "Mon, 02 Jan 2017 13:12:18 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Ian Dunn Cc: emacs-orgmode@gnu.org 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-subtree) > ,@body))) No, there isn't. Regards, -- Nicolas Goaziou