diff options
author | Carsten Dominik <carsten.dominik@gmail.com> | 2010-01-04 10:05:00 +0100 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2010-01-04 10:05:00 +0100 |
commit | ddcb2be1c8920fabfbca3777cc774ed1ac653a6e (patch) | |
tree | c4531e79ec9386979e1e58519d1847f614eb6f9c | |
parent | 2f5f6e401f187c2db8131cdbc4355b688ce4c55a (diff) | |
download | org-mode-ddcb2be1c8920fabfbca3777cc774ed1ac653a6e.tar.gz |
Work-around for formatting bug with email subject line from wanderlust
There is a bug in the Emacs implementation of `format' when text
properties are involved, see for a discussion this thread:
http://thread.gmane.org/gmane.emacs.orgmode/21045/focus=21091
-rwxr-xr-x | lisp/ChangeLog | 3 | ||||
-rw-r--r-- | lisp/org-wl.el | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 87472bc..4b89c52 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2010-01-04 Carsten Dominik <carsten.dominik@gmail.com> + * org-wl.el (org-wl-store-link): Work-around for format bug with + text properties. + * org-habit.el (org-habit-insert-consistency-graphs): Turn off invisibility while adding the graphs. diff --git a/lisp/org-wl.el b/lisp/org-wl.el index 8270584..e6630cc 100644 --- a/lisp/org-wl.el +++ b/lisp/org-wl.el @@ -104,6 +104,10 @@ (subject (let (wl-thr-indent-string wl-parent-message-entity) (wl-summary-line-subject))) desc link) + ;; remove text properties of subject string to avoid possible bug + ;; when formatting the subject + (set-text-properties 0 (length subject) nil subject) + (org-store-link-props :type "wl" :from from :to to :subject subject :message-id message-id) (setq message-id (org-remove-angle-brackets message-id)) |