From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: [PATCH] Improve configurability of ox-koma-letter Date: Sun, 05 May 2013 19:06:20 +0200 Message-ID: References: <20130421175957.GA7821@cartman> <878v4adh12.fsf@pank.eu> <20130422112728.GE7821@cartman> <8738uidaxh.fsf@pank.eu> <20130422192216.GD725@kenny.fritz.box> <87a9oodd4w.fsf@pank.eu> <20130505132729.GB2898@kenny.local> <20130505164447.GA4095@kenny.fritz.box> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53085) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZ2OG-0006ST-2K for emacs-orgmode@gnu.org; Sun, 05 May 2013 13:06:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZ2OF-0002Xt-1c for emacs-orgmode@gnu.org; Sun, 05 May 2013 13:06:23 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:52269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZ2OE-0002Xg-Rl for emacs-orgmode@gnu.org; Sun, 05 May 2013 13:06:22 -0400 In-reply-to: <20130505164447.GA4095@kenny.fritz.box> 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 Viktor Rosenfeld writes: >> I have a question about this: is there some special magic that makes the >> string "nil" to be parsed as `nil' and not as the string? > > I assume there must be. If I specify `foldmarks:nil' the if-statement in > line 294 evaluates it as false: > > #+BEGIN_SRC emacs-lisp > (format "\\KOMAoption{foldmarks}{%s}\n" (if with-foldmarks with-foldmarks "false")) > #+END_SRC OK. >> About the subject, I had a quick look at the code and I find it >> surprising: the default is "untitled", and I don't know how one can set >> it to nil (unless there is some magic in plist-get that transforms the >> "nil" string into nil). > > Same as above. `subject:nil' causes the code to skip the when-statement in line > 301. > > #+BEGIN_SRC emacs-lisp > (let ((with-subject (plist-get info :with-subject))) > (when with-subject > (concat > (format "\\KOMAoption{subject}{%s}\n" with-subject) > (format "\\setkomavar{subject}{%s}\n\n" > (org-export-data (plist-get info :title) info))))) > #+END_SRC > > Note, that untitled prints the subject but without a prefix. Setting it to nil > hides the subject altogether. Thanks for the clarification. I've applied the patch. Best, Alan