From: Viktor Rosenfeld <listuser36@gmail.com>
To: emacs-orgmode@gnu.org
Cc: Alan Schmitt <alan.schmitt@polytechnique.org>,
Nicolas Goaziou <n.goaziou@gmail.com>
Subject: [BUG] [contrib/org-koma-letter.el] #+DATE and #+TO_ADDRESS picked up from outside the current subtree
Date: Fri, 28 Dec 2012 23:38:06 +0100 [thread overview]
Message-ID: <20121228223805.GA4659@kenny.fritz.box> (raw)
[-- Attachment #1: Type: text/plain, Size: 692 bytes --]
Hi,
I've configured the scrlttr2 exporter found in
contrib/lisp/org-koma-letter.el to write letters directly in org-mode.
I'm very happy with the results, but I've noticed the following bug: If
there are multiple letters defined in an org-file, the contents of every
#+DATE and #+TO_ADDRESS field will be picked up, even if the export is
restricted to the current subtree.
In the attached file, if you export the first letter with 3 k k from the
export dispatch menu, the address will read
Max Mustermann
Musterstraße 1
12345 Musterstadt Moritz Mustermann
Musterallee 10
54321 Musterstadt
and the date will be set to December 28 from the second letter.
Regards,
Viktor
[-- Attachment #2: test.org --]
[-- Type: text/plain, Size: 983 bytes --]
* Letter 1
#+AUTHOR: Viktor Rosenfeld
#+DATE: 1. Dezember 2012
#+LATEX_CLASS: my-letter
#+TO_ADDRESS: Max Mustermann\\
#+TO_ADDRESS: Musterstraße 1\\
#+TO_ADDRESS: 12345 Musterstadt
ich möchte mich auf diesem Wege bei ihrem Kollegen mit der
Dienstnummer 12055 bedanken. Ich hatte am 2. September 2012 meine
Brieftasche im Treptower Park verloren. Sie wurde später bei der
Polizei abgegeben und der Polizist brachte sie mir nach Hause. Ich
fand das überaus freundlich und hilfsbereit.
* Letter 2
#+AUTHOR: Viktor Rosenfeld
#+DATE: 28. Dezember 2012
#+LATEX_CLASS: my-letter
#+TO_ADDRESS: Moritz Mustermann\\
#+TO_ADDRESS: Musterallee 10\\
#+TO_ADDRESS: 54321 Musterstadt
ich möchte mich auf diesem Wege bei ihrem Kollegen mit der
Dienstnummer 12055 bedanken. Ich hatte am 2. September 2012 meine
Brieftasche im Treptower Park verloren. Sie wurde später bei der
Polizei abgegeben und der Polizist brachte sie mir nach Hause. Ich
fand das überaus freundlich und hilfsbereit.
next reply other threads:[~2012-12-28 22:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-28 22:38 Viktor Rosenfeld [this message]
2012-12-29 15:12 ` [BUG] [contrib/org-koma-letter.el] #+DATE and #+TO_ADDRESS picked up from outside the current subtree Alan Schmitt
2012-12-29 19:18 ` Viktor Rosenfeld
2012-12-30 9:37 ` Alan Schmitt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121228223805.GA4659@kenny.fritz.box \
--to=listuser36@gmail.com \
--cc=alan.schmitt@polytechnique.org \
--cc=emacs-orgmode@gnu.org \
--cc=n.goaziou@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).