From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: koma letter exporter: changing the priority of options Date: Wed, 28 Aug 2013 15:23:05 +0200 Message-ID: References: <20130609180059.GA2104@kenny.local> <874nd6we8q.fsf@pank.eu> <20130720115503.GA67549@kenny.local> <87eh9s46kx.fsf@pank.eu> <87vc34dvyo.fsf@gmx.us> <87zjs2qcn7.fsf@gmx.us> <87mwo2qaso.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEfiK-0001j8-5P for emacs-orgmode@gnu.org; Wed, 28 Aug 2013 09:23:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEfiD-0007MC-L8 for emacs-orgmode@gnu.org; Wed, 28 Aug 2013 09:23:12 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:32637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEfiD-0007KS-Er for emacs-orgmode@gnu.org; Wed, 28 Aug 2013 09:23:05 -0400 In-reply-to: <87mwo2qaso.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: Rasmus Cc: emacs-orgmode@gnu.org rasmus@gmx.us writes: > As Viktor argues, mainly ugly and fragile solutions exist to check the > LCO file (e.g. find the file with kpsewhich in texlive). Yet, it > doesn't matter, as all you care about it the location of the variable > /depending/ on whether it's set in the buffer. > > E.g. > > #+LCO: test > * my letter > text > > produces > > [...] > \setkomavar{fromemail}{rasmus@gmx.us} > \LoadLetterOption{test} > [...] > > which may or may not produce result in rasmus@gmx.us being printed > depending on what test.lco contains. > > On the other hand > > #+EMAIL: rasmus@gmx.us > #+LCO: test > * my letter > text > > triggers and updatedp variable (how to automate this I'd have to think > about) and > > [...] > \LoadLetterOption{test} > \setkomavar{fromemail}{rasmus@gmx.us} > [...] > > Is this not what you want? Yes, this is exactly what I want (and what is being done by the patch). So if I understand correctly, you propose an alternative way to do this? Alan