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 13:43:32 +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> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEeA0-0004zK-6t for emacs-orgmode@gnu.org; Wed, 28 Aug 2013 07:43:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEe9u-0001Ma-2A for emacs-orgmode@gnu.org; Wed, 28 Aug 2013 07:43:40 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:63841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEe9t-0001MQ-SV for emacs-orgmode@gnu.org; Wed, 28 Aug 2013 07:43:33 -0400 In-reply-to: <87zjs2qcn7.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 Hi Rasmus, rasmus@gmx.us writes: >>> I also find something like this ghastly: >>> >>> But perhaps it is the only way to get what you want. >> >> I could not find a way to do it another way, but I'll gladly take any >> suggestion. What we want is: >> - if email is set in the file, use it; >> - otherwise, use the one from the lco; >> - otherwise, use the default one. > > Hmm, I guess we'd have to have to assign the variables to certain > lists on the fly. If the header string is a concat of > > (PREAMBLE-STRING DEFAULT-VALUES LCO BUFFER-LOCAL) > > where a member of DEFAULT-VALUES is a cons, e.g. > > ("fromname" . "Rasmus"). > > Then we can remove all pairs from DEFAULT-VALUES where the first first > element (the "key") also exists in BUFFER-LOCAL. > > It might be too much work? I'm not sure. . . This could be a way to do it. However, I don't know how to detect the variables in the LCO file, which is why they may be duplicated in the tex file. Alan