From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viktor Rosenfeld Subject: Re: koma letter exporter: changing the priority of options Date: Sun, 9 Jun 2013 20:00:59 +0200 Message-ID: <20130609180059.GA2104@kenny.local> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UljvO-0007YT-91 for emacs-orgmode@gnu.org; Sun, 09 Jun 2013 14:01:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UljvN-0001V4-E7 for emacs-orgmode@gnu.org; Sun, 09 Jun 2013 14:01:06 -0400 Received: from mail-bk0-x22f.google.com ([2a00:1450:4008:c01::22f]:50800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UljvN-0001UJ-7e for emacs-orgmode@gnu.org; Sun, 09 Jun 2013 14:01:05 -0400 Received: by mail-bk0-f47.google.com with SMTP id jg1so2732212bkc.20 for ; Sun, 09 Jun 2013 11:01:04 -0700 (PDT) Content-Disposition: inline In-Reply-To: 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: Alan Schmitt Cc: emacs-orgmode Hi Alan, Alan Schmitt wrote: > Hello, > > I just had to write a new letter with a fresh LCO file, and I would like > to propose to change the priority of options. The current priority is: > local options > emacs variables > lco file. > > Unfortunately emacs variables have a default value, which means they are > output in the .tex file even if they are not set. Thus it is impossible > to set some options in the lco file (such as foldmarks or backaddress). Why not simply set these Emacs variables to nil? Then they are not written in the TeX file and the LCO file works as expected. > I propose to either change the priority to: > local options > lco file > emacs variables I chose the current behavior in order to have the LCO file as a default which can easily be overwritten if wanted by setting an option line for an individual header. For example, I have foldmarks and backaddress enabled in my LCO file. Recently I had to sent a few letters by email where these things don't make a lot of sense. So I disabled them using #+OPTIONS: foldmarks:nil backaddress:nil > or to not output these options when they have not been set. Here are the > four options I have not set that end up in my .tex file, shadowing my > lco configuration: > > ,---- > | \KOMAoption{backaddress}{true} > | \KOMAoption{foldmarks}{true} > | \KOMAoption{fromphone}{true} > | \KOMAoption{fromemail}{true} > `---- Perhaps the best option would be to change the default value of these variables to nil? We have almost every option that personalizes a letter, e.g., opening and closing, set to nil already. The only benefit of having default values is to show off the features of org-koma-letter. But it seems to be interfering with people's workflow so best turn them off. Cheers, Viktor > > What do you think? > > Alan >