From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: [BUG] [contrib/org-koma-letter.el] #+DATE and #+TO_ADDRESS picked up from outside the current subtree Date: Sat, 29 Dec 2012 16:12:21 +0100 Message-ID: References: <20121228223805.GA4659@kenny.fritz.box> 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]:44852) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Toy5L-0008Fu-CX for emacs-orgmode@gnu.org; Sat, 29 Dec 2012 10:12:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Toy5K-0000BI-BS for emacs-orgmode@gnu.org; Sat, 29 Dec 2012 10:12:27 -0500 Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:23459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Toy5K-0000B9-48 for emacs-orgmode@gnu.org; Sat, 29 Dec 2012 10:12:26 -0500 In-reply-to: <20121228223805.GA4659@kenny.fritz.box> 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: Viktor Rosenfeld Cc: Nicolas Goaziou , emacs-orgmode@gnu.org Viktor Rosenfeld writes: > Hi, > > I've configured the scrlttr2 exporter found in > contrib/lisp/org-koma-letter.el to write letters directly in org-mode. > I'm very happy with the results, but I've noticed the following bug: If > there are multiple letters defined in an org-file, the contents of every > #+DATE and #+TO_ADDRESS field will be picked up, even if the export is > restricted to the current subtree. > > In the attached file, if you export the first letter with 3 k k from the > export dispatch menu, the address will read > > Max Mustermann=20 > Musterstra=C3=9Fe 1=20 > 12345 Musterstadt Moritz Mustermann > Musterallee 10=20 > 54321 Musterstadt > > and the date will be set to December 28 from the second letter. If you want subtree exporting, the information should be in a :PROPERTIES: drawer at the beginning of the thing to export. Here is what I did for a recent letter: #+BEGIN_SRC org ****** Lettre d'Accueil pour ... :PROPERTIES: :EXPORT_LATEX_CLASS: my-inria-fr-letter :EXPORT_LCO: InriaRennesFR :EXPORT_OPENING: ~ :EXPORT_CLOSING: ~ :END: text text ... #+END_SRC Note that in such drawers, the name of the option has "EXPORT_" before it. Hope this helps, Alan