From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Welle Subject: Re: Export subtrees of level n Date: Sun, 03 Sep 2017 10:23:12 +0200 Message-ID: <87fuc45gy7.fsf@luisa.c0t0d0s0.de> References: <8737846w8s.fsf@luisa.c0t0d0s0.de> <87d178dwsp.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doQBf-0005Me-RE for emacs-orgmode@gnu.org; Sun, 03 Sep 2017 04:23:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doQBb-0002rC-4x for emacs-orgmode@gnu.org; Sun, 03 Sep 2017 04:23:23 -0400 Received: from mout.gmx.net ([212.227.15.15]:65304) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1doQBa-0002r0-Rj for emacs-orgmode@gnu.org; Sun, 03 Sep 2017 04:23:19 -0400 Received: from stella.c0t0d0s0.de ([2.247.240.87]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M1Ee8-1dUXoy2RIG-00t9y2 for ; Sun, 03 Sep 2017 10:23:16 +0200 Received: from Stella (stella.c0t0d0s0.de [192.168.42.1]) by stella.c0t0d0s0.de (Postfix) with ESMTP id A2BF6C406A for ; Sun, 3 Sep 2017 10:23:12 +0200 (CEST) In-Reply-To: <87d178dwsp.fsf@alphapapa.net> (Adam Porter's message of "Sun, 03 Sep 2017 03:13:42 -0500") 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" To: emacs-orgmode@gnu.org Hello, Adam Porter writes: > Michael Welle writes: > >> Is there an existing way to say that I want to go up to a level n >> heading and then export, or do I have to implement that by myself? > > I think you'll have to do it yourself. Here are a couple of ideas: > > 1. Write a function to export a subtree with a specific Org ID. > > 2. Write a function to look up the tree from point and export the first > subtree with a certain property. I thought about implementing the second approach. I have slides for several talks in the same org file. Since I mostly need this functionality when I'm developing slides, just going up from point until reaching the desired heading is easy to implement. Regards hmw