From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug] ox-koma-letter.el: Double translation of the signature to LaTeX Date: Sat, 23 Jun 2018 23:25:32 +0200 Message-ID: <87lgb5tctv.fsf@nicolasgoaziou.fr> References: <1189432802.586642.1529786460424@email.1und1.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWq2O-00018p-Cc for emacs-orgmode@gnu.org; Sat, 23 Jun 2018 17:25:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWq2L-0001se-8l for emacs-orgmode@gnu.org; Sat, 23 Jun 2018 17:25:40 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:33405) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fWq2L-0001nM-2N for emacs-orgmode@gnu.org; Sat, 23 Jun 2018 17:25:37 -0400 In-Reply-To: <1189432802.586642.1529786460424@email.1und1.de> (Tobias Zawada's message of "Sat, 23 Jun 2018 22:41:00 +0200 (CEST)") 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" To: Tobias Zawada Cc: emacs-orgmode@gnu.org Hello, Tobias Zawada writes: > org-export-data for the signature causes double LaTeX translation at > https://emacs.stackexchange.com/questions/42200/prevent-org-export-from-expanding-as-backslash/42207?noredirect=1#comment66334_42207. > > The translator for the headlines org-koma-letter-headline is used to > extract the :closing: headline and to put its stuff into > org-koma-letter-special-contents. org-koma-letter--get-tagged-contents > retrieves the closing from there. I have the impression that > org-koma-letter-headline already gets the translated headline contents > and translating it again with org-export-data is a bad idea. Correct. > (org-trim > - (org-export-data > - (org-koma-letter--get-tagged-contents 'closing) > - info))))) > + (org-koma-letter--get-tagged-contents 'closing) > + info)))) This will fail if `org-koma-letter--get-tagged-contents' returns a nil value. I applied a slightly different patch. Thank you for the analysis and the patch. Regards, -- Nicolas Goaziou