From mboxrd@z Thu Jan 1 00:00:00 1970 From: Skip Collins Subject: Re: export subtree Date: Thu, 10 Dec 2015 17:06:03 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a79M0-0005pW-6r for emacs-orgmode@gnu.org; Thu, 10 Dec 2015 17:06:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a79Lz-0007WW-7G for emacs-orgmode@gnu.org; Thu, 10 Dec 2015 17:06:24 -0500 Received: from mail-qg0-x22a.google.com ([2607:f8b0:400d:c04::22a]:34954) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a79Ly-0007Vl-VC for emacs-orgmode@gnu.org; Thu, 10 Dec 2015 17:06:23 -0500 Received: by qgec40 with SMTP id c40so165058736qge.2 for ; Thu, 10 Dec 2015 14:06:22 -0800 (PST) In-Reply-To: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andreas Leha Cc: emacs-org list Andreas Leha wrote: >> 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). Good try, but it does not do what I want. It selects the subtree currently at point, just as if I ran the dispatcher again and selected the same options. It might be a nice enhancement if the dispatcher remembered which subtree it used last time so that it really could repeat a subtree export with the same options and from the same subtree.