Fix handling of author and email in koma exporter.
commitba7a2cc8da01c0c2ffaa5e1f76f68ce313f567c7
authorrasmus.pank <rasmus.pank@gmail.com>
Sun, 26 May 2013 14:13:39 +0000 (26 16:13 +0200)
committerAlan Schmitt <alan.schmitt@polytechnique.org>
Mon, 27 May 2013 06:29:12 +0000 (27 08:29 +0200)
tree962187a6db5bc49a52f57daa64c6da1b07206620
parent2347dcf76b7b7522e8ed573d8886437736f0f5b6
Fix handling of author and email in koma exporter.

* ox-koma-letter.el (org-koma-letter-author): defaults to a function
that returns =`user-full-name'=.

Setting the variables `org-koma-letter-author' and
`org-koma-letter-email' to the values of `user-full-name' and
`user-mail-address' respectively, allows the user to skip =#+AUTHOR:=
and =#+EMAIL:= lines when configuring a letter.  However, if the user
wishes to set this information in LCO files, these variables need to
be set to nil.

With the old after-init-hook method my user name was always set to "".
Now org-koma-letter will (i) allow for default nil values (good if you
use LCO files); (ii) default to =`user-full-name'= and
=`user-mail-address'= like =ox-latex.el=.  These values are obtained
on-the-fly.

The two variables in question can also be strings or functions
returning strings.

Signed-off-by: Alan Schmitt <alan.schmitt@polytechnique.org>
contrib/lisp/ox-koma-letter.el