From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Export a Subtree to an other .org file Date: Wed, 3 Apr 2013 17:50:19 -0500 Message-ID: References: <048901ce3091$97eb1440$c7c13cc0$@gmail.com> <87ppybh35m.fsf@bzg.ath.cx> <04ef01ce30a1$cae9a220$60bce660$@gmail.com> <20130403213639.GA31923@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNWVd-0001rW-HW for emacs-orgmode@gnu.org; Wed, 03 Apr 2013 18:50:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNWVY-0000qR-Pb for emacs-orgmode@gnu.org; Wed, 03 Apr 2013 18:50:25 -0400 Received: from mail-la0-x231.google.com ([2a00:1450:4010:c03::231]:38802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNWVY-0000qI-I9 for emacs-orgmode@gnu.org; Wed, 03 Apr 2013 18:50:20 -0400 Received: by mail-la0-f49.google.com with SMTP id fs13so1910473lab.8 for ; Wed, 03 Apr 2013 15:50:19 -0700 (PDT) In-Reply-To: <20130403213639.GA31923@localhost> 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: Hsiu-Khuern Tang Cc: emacs-orgmode On Wed, Apr 3, 2013 at 4:36 PM, Hsiu-Khuern Tang wrote: > * On Wed 03:35PM, 03 Apr 2013, John Hendy (jw.hendy@gmail.com) wrote: >> On Wed, Apr 3, 2013 at 2:31 PM, Steve Prud'Homme wr= ote: >> > Message : >> > No command associated with key ^S >> > >> >> Bastien's response was for the new exporter and your C-e 1 command >> indicates you're not using that version yet. I'm on the new exporter, >> so I can't recall what old options looked like, but from the manual >> could you try ASCII? >> - http://orgmode.org/manual/ASCII_002fLatin_002d1_002fUTF_002d8-export.h= tml#ASCII_002fLatin_002d1_002fUTF_002d8-export >> >> Perhaps you could just export that to a buffer and then save as *.org >> instead of the default export format of .txt? > > I think the ascii export does not produce a file in Org format. You're right -- sorry about that; had never tried it. I'm curious about a use case for this? Is it just that it's faster than this combo: #+begin_quote http://orgmode.org/manual/Structure-editing.html C-c C-x M-w (org-copy-subtree)Copy subtree to kill ring. With a numeric prefix argument N, copy the N sequential subtrees. C-c C-x C-y (org-paste-subtree)Yank subtree from kill ring. This does modify the level of the subtree to make sure the tree fits in nicely at the yank position. The yank level can also be specified with a numeric prefix argument, or by yanking after a headline marker like =E2=80=98****=E2=80=99. #+end_quote I can also see advantages in not having to C-x C-f to a new file before yanking and just being able to "send" the subtree to a generated file specified with an :EXPORT_FILE_NAME: property in the tree (though from the manual, that looks only to apply to ODT, DocBook, and LaTeX). Best regards, John > > The old exporter function org-export-as-org may do the trick for Steve. > > I too find it useful to export to org, and would love to see this impleme= nted > in the new exporter. I rely on this together with the SELECT_TAGS and > EXCLUDE_TAGS keywords to create an Org file with a subset of the headings= , not > just a subtree. Is there a new exporter function that does this? > > > -- > Best, > Hsiu-Khuern. >