From: Paul Mead <paul.d.mead@googlemail.com>
To: Matt Lundin <mdl@imapmail.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Excluding just heading from export
Date: Sat, 06 Feb 2010 14:58:32 +0000 [thread overview]
Message-ID: <87d40ifm1z.fsf@gmail.com> (raw)
In-Reply-To: <87tytue95g.fsf@fastmail.fm> (Matt Lundin's message of "Sat, 06 Feb 2010 09:22:35 -0500")
Matt Lundin <mdl@imapmail.org> writes:
>
> One hack would be to use an export hook to remove headings with a
> particular tag. E.g.,
>
> (defvar my-org-export-remove-heading-tag "killtag")
>
> (defun my-org-export-remove-headings-with-tag ()
> (while (re-search-forward (concat ":" my-org-export-remove-heading-tag ":") nil t)
> (beginning-of-line)
> (kill-line)))
>
> (add-hook
> 'org-export-preprocess-after-tree-selection-hook
> 'my-org-export-remove-headings-with-tag)
>
> Best,
> Matt
>
Thanks Matt, I'll give that a try and see if it does what I need.
Paul
prev parent reply other threads:[~2010-02-06 14:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-06 13:17 Excluding just heading from export Paul Mead
2010-02-06 14:22 ` Matt Lundin
2010-02-06 14:58 ` Paul Mead [this message]
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=87d40ifm1z.fsf@gmail.com \
--to=paul.d.mead@googlemail.com \
--cc=emacs-orgmode@gnu.org \
--cc=mdl@imapmail.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).