Package: org-mode
Version: 8.2.7-1
Severity: normal
Tags: patch

Dear Maintainer,

setting up the koma-letter exporter to write letters from org-mode, i discovered
that i was unable to set a default for the FROM_ADDRESS.
I tried setting the "org-koma-letter-from-address" variable, but no matter what,
whenever created a new org-mode file based on the koma-letter template ("C-c C-e
# kola-letter") the FROM_ADDRESS field would stay empty.
i could set all other fields correctly.

attached is a patch that fixes this issue.

mgfards
IOhannes

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages org-mode depends on:
ii  emacs24         24.3+1-4+b1
ii  emacsen-common  2.0.8

Versions of packages org-mode recommends:
ii  texlive-generic-recommended  2014.20140528-3
ii  texlive-latex-recommended    2014.20140528-3

Versions of packages org-mode suggests:
pn  ditaa   <none>
pn  easypg  <none>

-- no debconf information
--- ox-koma-letter.el.org	2014-06-18 23:43:18.000000000 +0200
+++ ox-koma-letter.el	2014-06-18 23:43:35.000000000 +0200
@@ -304,7 +304,7 @@
 					org-latex-default-class) t)
     (:author "AUTHOR" nil (org-koma-letter--get-value org-koma-letter-author) t)
     (:author-changed-in-buffer-p "AUTHOR" nil nil t)
-    (:from-address "FROM_ADDRESS" nil nil newline)
+    (:from-address "FROM_ADDRESS" nil org-koma-letter-from-address newline)
     (:phone-number "PHONE_NUMBER" nil org-koma-letter-phone-number)
     (:email "EMAIL" nil (org-koma-letter--get-value org-koma-letter-email) t)
     (:email-changed-in-buffer-p "EMAIL" nil nil t)

Reply via email to