From bfe1b2fbe2baa62cd26bf9a76077e56a9c243075 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 15 Jun 2015 18:49:24 +0200 Subject: [PATCH] ox-koma-letter: Fix void `with-title' variable * contrib/lisp/ox-koma-letter.el (org-koma-letter-template): Let-bind `with-title'. Reported-by: Thomas Holst --- contrib/lisp/ox-koma-letter.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/lisp/ox-koma-letter.el b/contrib/lisp/ox-koma-letter.el index 88201cef1..119ffe9a6 100644 --- a/contrib/lisp/ox-koma-letter.el +++ b/contrib/lisp/ox-koma-letter.el @@ -617,11 +617,12 @@ holding export options." (format "\\date{%s}\n" (org-export-data (org-export-get-date info) info)) ;; Hyperref, document start, and subject and title. (let* ((with-subject (plist-get info :with-subject)) + (with-title (plist-get info :with-title)) (title-as-subject (and with-subject (plist-get info :with-title-as-subject))) (subject* (org-string-nw-p (org-export-data (plist-get info :subject) info))) - (title* (and (plist-get info :with-title) + (title* (and with-title (org-string-nw-p (org-export-data (plist-get info :title) info)))) (subject (cond ((not with-subject) nil)