From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [PATCH] ox-koma-letter.el: Reintroduce variables removed in commit 832c6fd with proper defaults Date: Sat, 25 May 2013 23:41:46 +0200 Message-ID: <87zjviloth.fsf_-_@pank.eu> References: <87wqqsd7p8.fsf@pank.eu> <874ndwcyjx.fsf@pank.eu> <20130521170259.GB56408@client199-78.wlan.hu-berlin.de> <87ehd09p6r.fsf@pank.eu> <20130521195413.GA58739@kenny.local> <87vc6b9atm.fsf@pank.eu> <20130522143923.GA61443@kenny.local> <20130522220650.GB68001@kenny.local> <51A0487D.4020809@mpip-mainz.mpg.de> <20130525080554.GA590@kenny.local> <87hahrmabq.fsf@pank.eu> <51A1245D.606@mpip-mainz.mpg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgME2-0007oN-Ro for emacs-orgmode@gnu.org; Sat, 25 May 2013 17:42:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UgMDv-0005ik-PF for emacs-orgmode@gnu.org; Sat, 25 May 2013 17:42:06 -0400 Received: from plane.gmane.org ([80.91.229.3]:48742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgMDv-0005iX-Iw for emacs-orgmode@gnu.org; Sat, 25 May 2013 17:41:59 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UgMDt-0004Cg-J4 for emacs-orgmode@gnu.org; Sat, 25 May 2013 23:41:57 +0200 Received: from dynamic-adsl-94-39-217-165.clienti.tiscali.it ([94.39.217.165]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 25 May 2013 23:41:57 +0200 Received: from rasmus by dynamic-adsl-94-39-217-165.clienti.tiscali.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 25 May 2013 23:41:57 +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 Robert, > what I meant is, if #+AUTHOR defaults to (user-full-name), could the > \setkomavar commands be placed /before/ \LoadLetterOption in the TeX > file, and after \LoadLetterOptions if #+AUTHOR is set in the .org file? > > So you'd still get only one set of \setkomavar in the TeX file, but get > a (for me) more useful order of #+AUTHOR != (user-full-name) > #+LCO > > #+AUTHOR == (user-full-name) I see. It could be done but it could be kind of inconvenient, I guess, since currently #+AUTHOR and the default org-koma-letter-author share the same variable name during export. You can always disable it with empty values, although a bit of a hassle (e.g. "#+AUTHOR:\n"). If my memory serves me correctly Viktor decided the order of LCO values versus file values carefully so he'll have a better idea about this. That being said, I can think of two ways to do it. 1. use something like `org-koma-letter--prepare-special-contents-as-macro' and make an ordering dependent on a list like with org-koma-letter-special-tags-after-closing. 2. Test whether a particular value is equal to the default. But it seems like something that could easily go wrong. . . –Rasmus -- Hvor meget poesi tror De kommer ud af et glas isvand?