From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: small koma bug Date: Mon, 10 Mar 2014 14:50:27 +0100 Message-ID: References: <87bnxep4nr.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WN0tN-0007vI-9u for emacs-orgmode@gnu.org; Mon, 10 Mar 2014 10:09:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WN0tH-0000os-5A for emacs-orgmode@gnu.org; Mon, 10 Mar 2014 10:09:21 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:33424) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WN0tG-0000oU-Um for emacs-orgmode@gnu.org; Mon, 10 Mar 2014 10:09:15 -0400 In-Reply-To: <87bnxep4nr.fsf@gmx.us> (rasmus@gmx.us's message of "Mon, 10 Mar 2014 14:24:56 +0100") 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 writes: > How about: > > (let ((from-address (org-koma-letter--determine-to-and-from info 'from))) > (and (org-string-nw-p from-address) (format "\\setkomavar{fromaddress}{%s}\n" from-address))) > > Or more explicitly > > (let ((from-address (org-koma-letter--determine-to-and-from info 'from))) > (when (org-string-nw-p from-address) (format "\\setkomavar{fromaddress}{%s}\n" from-address))) It sounds good. I'll commit this change. Thanks, Alan