emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andreas Leha <andreas.leha@med.uni-goettingen.de>
To: emacs-orgmode@gnu.org
Subject: Re: export subtree
Date: Thu, 10 Dec 2015 20:06:40 +0000	[thread overview]
Message-ID: <oluio46oypb.fsf@med.uni-goettingen.de> (raw)
In-Reply-To: CABUh-77QDegRVPT4ouZe8Js_mktfrmNuVX0QpdrgWk7ro3Hs_Q@mail.gmail.com

Hi Skip,

Skip Collins <skip.collins@gmail.com> writes:
> The export dispatcher allows me to export only the current subtree.
> This is nice, but I would like to avoid having to put point in just
> the right place before invoking the dispatcher. I have a document with
> lots of things in it. One of the top-level headlines contains the
> content of what I want to export. Is there a way to flag this heading
> and its contents as the main export document so that wherever my
> cursor is, when I export the document it only processes the correct
> heading, treating its text as the title of the document?

Try to run `org-export-dispatch' with a prefix from the second time
onwards (so, do C-u C-c C-e).

From its docstring:

,----
| When ARG is C-u, repeat the last export action, with the same set
| of options used back then, on the current buffer.
`----

This might do what you want already.

Regards,
Andreas

  reply	other threads:[~2015-12-10 20:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-10 18:24 export subtree Skip Collins
2015-12-10 20:06 ` Andreas Leha [this message]
2015-12-10 22:06   ` Skip Collins
2015-12-10 22:43     ` Andreas Leha
2015-12-11  0:10       ` Skip Collins
  -- strict thread matches above, loose matches on Subject: below --
2015-12-11  0:27 Herbert Sitz
2015-12-11  0:40 ` John Hendy
     [not found]   ` <CA+iLYJsj=gMvRQXO+h8GKwNvdXzTcZ7vqT_6eYSDnNdbHyJxwg@mail.gmail.com>
2015-12-16  4:43     ` John Hendy
2015-12-11  2:50 ` Skip Collins
2015-12-11  3:53   ` John Hendy
2015-12-11 13:56     ` Skip Collins

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=oluio46oypb.fsf@med.uni-goettingen.de \
    --to=andreas.leha@med.uni-goettingen.de \
    --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).