From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: koma letter exporter: changing the priority of options Date: Mon, 22 Jul 2013 09:14:11 +0200 Message-ID: References: <20130609180059.GA2104@kenny.local> <874nd6we8q.fsf@pank.eu> <20130720115503.GA67549@kenny.local> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1AJy-0005NI-OV for emacs-orgmode@gnu.org; Mon, 22 Jul 2013 03:14:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1AJx-0000Mg-Ni for emacs-orgmode@gnu.org; Mon, 22 Jul 2013 03:14:14 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:11322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1AJx-0000Ia-H0 for emacs-orgmode@gnu.org; Mon, 22 Jul 2013 03:14:13 -0400 In-reply-to: <20130720115503.GA67549@kenny.local> 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: emacs-orgmode@gnu.org, Rasmus Hi Rasmus and Viktor, listuser36@gmail.com writes: > Hi, > > Alan Schmitt wrote: > >> - (format "\\KOMAoption{backaddress}{%s}\n" (if with-backaddress "true" "false")) >> - (format "\\KOMAoption{foldmarks}{%s}\n" (if with-foldmarks with-foldmarks "false")) >> - (format "\\KOMAoption{fromphone}{%s}\n" (if with-phone "true" "false")) >> - (format "\\KOMAoption{fromemail}{%s}\n" (if with-email "true" "false")))) >> + (if with-backaddress (format "\\KOMAoption{backaddress}{true}\n") "") >> + (if (not (equal with-foldmarks "true")) (format "\\KOMAoption{foldmarks}{%s}\n" with-foldmarks) "") >> + (if with-phone (format "\\KOMAoption{fromphone}{true}\n") "") >> + (if with-email (format "\\KOMAoption{fromemail}{true}\n") ""))) > > If I read the patch correctly then the consequence is that you cannot > configure your LCO file to set defaults for these values and inhibit > them in specific letters by setting the corresponding option to nil. For > example, in my LCO file I enable all of these options but sometimes I > don't want to have foldmarks or a backaddress or whatever. So I can > write #+OPTIONS: backaddress:nil and it is supressed. The patch changes > that. Yes, this is not satisfactory (and the email and author is also problematic in this regard). We need to know whether an option was set in the file, independently of its default value. Is there a way to do this? Alan