From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Zawada Subject: [bug] ox-koma-letter.el: Double translation of the signature to LaTeX Date: Sat, 23 Jun 2018 22:41:00 +0200 (CEST) Message-ID: <1189432802.586642.1529786460424@email.1und1.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWpLH-0005cL-MX for emacs-orgmode@gnu.org; Sat, 23 Jun 2018 16:41:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWpLD-0003n6-AI for emacs-orgmode@gnu.org; Sat, 23 Jun 2018 16:41:07 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:47771) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fWpLC-0003ma-Vq for emacs-orgmode@gnu.org; Sat, 23 Jun 2018 16:41:03 -0400 Received: from null ([172.19.249.21]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.167]) with ESMTPSA (Nemesis) id 0LisgQ-1g23M23hKY-00dH9s for ; Sat, 23 Jun 2018 22:41:00 +0200 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: emacs-orgmode@gnu.org Hello, 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. Regards, Tobias The following changes since commit 96b9166cf47e33a0e0292eee0eb8f42190c9c9fd: Add header argument :save-windows. (2018-06-20 00:21:09 +0200) are available in the Git repository at: https://code.orgmode.org/TobiasZawada/org-mode.git HEAD for you to fetch changes up to 69ee47c34bb0c857b2db2433b38c2ba980ea3905: Avoid double data export on :closing: header content (2018-06-23 22:13:00 +0200) ---------------------------------------------------------------- Tobias Zawada (1): Avoid double data export on :closing: header content contrib/lisp/ox-koma-letter.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/contrib/lisp/ox-koma-letter.el b/contrib/lisp/ox-koma-letter.el index fc6599fe7..8d9b5ef6b 100644 --- a/contrib/lisp/ox-koma-letter.el +++ b/contrib/lisp/ox-koma-letter.el @@ -820,9 +820,8 @@ a communication channel." (and (plist-get info :with-headline-opening) (org-string-nw-p (org-trim - (org-export-data - (org-koma-letter--get-tagged-contents 'closing) - info))))) + (org-koma-letter--get-tagged-contents 'closing) + info)))) (signature (org-string-nw-p (plist-get info :signature))) (signature-scope (funcall check-scope 'signature))) (and (or (and signature signature-scope)