From ddcb2be1c8920fabfbca3777cc774ed1ac653a6e Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Mon, 4 Jan 2010 10:05:00 +0100 Subject: [PATCH] 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 --- lisp/ChangeLog | 3 +++ lisp/org-wl.el | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 87472bc9d..4b89c5236 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2010-01-04 Carsten Dominik + * 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 827058451..e6630cc29 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)) -- 2.11.4.GIT