From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: [PATCH] Improve configurability of ox-koma-letter Date: Mon, 22 Apr 2013 11:31:07 +0200 Message-ID: References: <20130421175957.GA7821@cartman> <87ppxnkl4d.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUD5j-0001PV-27 for emacs-orgmode@gnu.org; Mon, 22 Apr 2013 05:31:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UUD5V-0002cc-Bz for emacs-orgmode@gnu.org; Mon, 22 Apr 2013 05:31:18 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:31313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUD5U-0002bw-PO for emacs-orgmode@gnu.org; Mon, 22 Apr 2013 05:31:05 -0400 In-reply-to: <87ppxnkl4d.fsf@gmail.com> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Hello, > > Alan Schmitt writes: > >> I'm not sure about the procedure to apply this patch, however. Should I >> do it myself? > > You're the file maintainer, aren't you? :) ;-) A couple notes about the patch: - Could you create it using "git format-patch"? This way we'll have more metadata in the commit. - I think there is an issue with the handling of signatures. I tried with an old letter that uses a LCO with a graphical signature in it, but it gets overridden upon export. Here is the generated TeX. #+BEGIN_SRC latex \LoadLetterOption{InriaRennesFR} \setkomavar{signature}{\usekomavar{fromname}} #+END_SRC It seems to come from this part of the patch: #+BEGIN_SRC emacs-lisp (signature (plist-get info :signature))) (concat ;; Letter Class Option File (when lco (let ((lco-files (split-string lco " ")) (lco-def "")) (dolist (lco-file lco-files lco-def) (setq lco-def (format "%s\\LoadLetterOption{%s}\n" lco-def lco-file))) lco-def)) ;; Define "From" data. (when sender (format "\\setkomavar{fromname}{%s}\n" sender)) (when from-address (format "\\setkomavar{fromaddress}{%s}\n" from-address)) (when phone-number (format "\\setkomavar{fromphone}{%s}\n" phone-number)) (when email (format "\\setkomavar{fromemail}{%s}\n" email)) (when signature (format "\\setkomavar{signature}{%s}\n" signature)))) #+END_SRC If signature is set for some reason (and it seems to be by default), then it will override what is in the LCO. I have not found a way to set the options such that the signature from the LCO gets picked up. Alan