From: Ian Dunn <dunni@gnu.org>
To: emacs-orgmode@gnu.org
Subject: Subtree macro
Date: Mon, 02 Jan 2017 13:12:18 -0500 [thread overview]
Message-ID: <87y3ytnxfh.fsf@gnu.org> (raw)
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
next reply other threads:[~2017-01-02 18:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-02 18:12 Ian Dunn [this message]
2017-01-02 18:41 ` Subtree macro Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y3ytnxfh.fsf@gnu.org \
--to=dunni@gnu.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).