From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joon Ro Subject: Re: Export subtrees of level n Date: Sun, 3 Sep 2017 17:26:05 +0000 Message-ID: References: <8737846w8s.fsf@luisa.c0t0d0s0.de> <87d178dwsp.fsf@alphapapa.net>,<87fuc45gy7.fsf@luisa.c0t0d0s0.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_BY2PR15MB042185CA2593C7AFE351BEA9EB900BY2PR15MB0421namp_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doYey-0001qY-7Z for emacs-orgmode@gnu.org; Sun, 03 Sep 2017 13:26:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doYet-000645-Di for emacs-orgmode@gnu.org; Sun, 03 Sep 2017 13:26:12 -0400 Received: from mail-oln040092009057.outbound.protection.outlook.com ([40.92.9.57]:63584 helo=NAM04-BN3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1doYet-00063Z-3X for emacs-orgmode@gnu.org; Sun, 03 Sep 2017 13:26:07 -0400 In-Reply-To: <87fuc45gy7.fsf@luisa.c0t0d0s0.de> Content-Language: en-US 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: Michael Welle , "emacs-orgmode@gnu.org" --_000_BY2PR15MB042185CA2593C7AFE351BEA9EB900BY2PR15MB0421namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > 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. If you can implement this, that would be great as I find myself doing this = all the time as well. Currently what I do is make sure to export the right = subtree first, and then start using "\C-u\C-c\C-e". I bind f5 to "\C-u\C-c\= C-e" with the following in my init file: (fset 'export-last-subtree "\C-u\C-c\C-e") (eval-after-load "org" '(progn (define-key org-mode-map (kbd "") 'export-last-subtree))) --_000_BY2PR15MB042185CA2593C7AFE351BEA9EB900BY2PR15MB0421namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
> 2.  Write a function to look up the tree from point and export th= e 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 goi= ng up from point until
reaching the desired heading is easy to implement.=

If you can implement this, that would be great as = I find myself doing this all the time as well. Currently what I do is make = sure to export the right subtree first, and then start using "\C-u\C-c\C-e". I bind f5 to "\C-u\C-c\C= -e" with the following in my init file:

(fset 'export-last-subtree
      "\C-u\C-c\C-e")

(eval-after-load "org"
  '(progn
     (define-key org-mode-map (kbd "<f5>&quo= t;) 'export-last-subtree)))





--_000_BY2PR15MB042185CA2593C7AFE351BEA9EB900BY2PR15MB0421namp_--