Added support for to and from heading.
commit878ff19f35d6f96bfa4c34ec5ef0395a46728ae2
authorrasmus <rasmus@gmx.us>
Sat, 1 Jun 2013 17:52:36 +0000 (1 19:52 +0200)
committerAlan Schmitt <alan.schmitt@polytechnique.org>
Wed, 12 Jun 2013 11:38:31 +0000 (12 13:38 +0200)
tree67d5c80e70e7f24f02636db437f31075aff4f5ce
parent8dd2aa4041632a1a8f819180d152c2ae7fc90b02
Added support for to and from heading.

* ox-koma-letter.el: documentation.
(org-koma-letter-special-tags-in-letter): list of tags that
are typeset as part of the letter.
(org-koma-letter--determine-special-value): determine which
value to use (for to and from currentlly) if more than
candidate is available.  Which value is selected depends on
`org-koma-letter-prefer-special-headings'.
(org-koma-letter-prefer-special-headings): a boolean stating
whether to prefer headings with to/from or the #+X_ADDRESS.

The following letter now exports "as expected".  In particular when
special-headings is t heading values have presedence so the
from address would be ="Rasmus\nEmacs\nOrg-mode"= where the
=\n=s would be escaped.  If specia-headings is nil (default)
the from would be my-adr.  The same is true for TO address.

Here's the contents

* from :from:

   Rasmus
   Emacs
   Org-mode

On a technical note, note that the default value will be used if
neither #+X_ADDRESS or a heading is given.

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