From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: ox-koma bug in subtree export Date: Wed, 15 Jul 2015 23:13:17 +0200 Message-ID: <20150715211317.GO18343@chitra.no-ip.org> References: <20150715112057.GI18343@chitra.no-ip.org> <87y4ihk5ho.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFTzY-0003Zh-Nr for emacs-orgmode@gnu.org; Wed, 15 Jul 2015 17:13:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFTzU-0005FA-OC for emacs-orgmode@gnu.org; Wed, 15 Jul 2015 17:13:24 -0400 Received: from mail-wg0-x229.google.com ([2a00:1450:400c:c00::229]:35652) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFTzU-0005Ej-Gw for emacs-orgmode@gnu.org; Wed, 15 Jul 2015 17:13:20 -0400 Received: by wgjx7 with SMTP id x7so43138227wgj.2 for ; Wed, 15 Jul 2015 14:13:19 -0700 (PDT) Received: from chitra.no-ip.org (ip82-139-115-46.lijbrandt.net. [82.139.115.46]) by smtp.gmail.com with ESMTPSA id ho10sm9674589wjb.39.2015.07.15.14.13.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Jul 2015 14:13:19 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87y4ihk5ho.fsf@gmx.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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Wed, Jul 15, 2015 at 01:46:59PM +0200, Rasmus wrote: > Suvayu Ali writes: > > > I'm using subtree export to write letters using ox-koma. Everything > > works except, all the closing statements from different subtrees get > > accumulated when I export one of the subtrees. > > > > So with the attached Org file, when I export either of the subtrees, I > > get a closing line like this: \closing{Regards, Kind Regards,}. > > For your purpose you can add an :export_closing: property to your > top-level heading. > > * letter 1 > :PROPERTIES: > :export_subject: Some subject > :export_closing: Regards, > :END: Great, this works very well. > > This used to work before. That said, I never found it quite consistent > > when using `#+closing:'. I would have thought one should use a headline > > like: to, enclosed, etc. > > Maybe: > > * Regards, :closing: > Signature Something like that would be a lot more logical indeed. > > Is this a bug? > > From you example, I'd say 'no'. Keywords are shared. E.g. if you have > > #+latex_header: my important package > > You'd want it to be loaded even when using a subtree. > [OTOH, #+title is changed in subtree export....] Hmm, makes sense. I wonder how it was working though. Thanks a lot. -- Suvayu Open source is the future. It sets us free.