From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: export tree Date: Sun, 20 May 2012 00:02:30 +0200 Message-ID: <8762brbzih.fsf@med.uni-goettingen.de> References: <87ipfrc168.fsf@med.uni-goettingen.de> <22959.1337464651@alphaville> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVrkF-0006Jz-Gl for emacs-orgmode@gnu.org; Sat, 19 May 2012 18:03:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SVrkD-0006MK-OA for emacs-orgmode@gnu.org; Sat, 19 May 2012 18:03:27 -0400 Received: from plane.gmane.org ([80.91.229.3]:56958) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVrkD-0006M5-Hl for emacs-orgmode@gnu.org; Sat, 19 May 2012 18:03:25 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SVrkB-00058s-11 for emacs-orgmode@gnu.org; Sun, 20 May 2012 00:03:23 +0200 Received: from vpn-2041.gwdg.de ([134.76.2.41]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 May 2012 00:03:23 +0200 Received: from andreas.leha by vpn-2041.gwdg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 May 2012 00:03:23 +0200 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: emacs-orgmode@gnu.org Hi Nick, >> Hi all, >> >> what is the best way to export the whole current tree (starting from the >> top-level headline)? [...] > > Write a function and bind it to a key - something like this perhaps: > > (defun ah-export-current-top-level-tree () > (interactive) > (save-excursion > (outline-up-heading (org-current-level)) > (let ((org-export-initial-scope 'subtree)) > (org-export)))) > > Nick Thank a lot. Works great! Cheers, Andreas