Browse Source

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
Carsten Dominik 15 years ago
parent
commit
ddcb2be1c8
2 changed files with 7 additions and 0 deletions
  1. 3 0
      lisp/ChangeLog
  2. 4 0
      lisp/org-wl.el

+ 3 - 0
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.
 

+ 4 - 0
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))