Browse Source

Fix text property problem in char after TODO in agenda

This character did not have text properties and therefore many
commands did not work at that position.

Reported by Bernt Hansen.
Carsten Dominik 15 years ago
parent
commit
e3cdd782f8
2 changed files with 4 additions and 1 deletions
  1. 3 0
      lisp/ChangeLog
  2. 1 1
      lisp/org-agenda.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2009-09-18  Carsten Dominik  <carsten.dominik@gmail.com>
 2009-09-18  Carsten Dominik  <carsten.dominik@gmail.com>
 
 
+	* org-agenda.el (org-agenda-highlight-todo): Fix text property
+	problem.
+
 	* org-mobile.el (org-mobile-capture-file): Use `mobileorg.org' as
 	* org-mobile.el (org-mobile-capture-file): Use `mobileorg.org' as
 	the capture file, and make it non-configurable.
 	the capture file, and make it non-configurable.
 
 

+ 1 - 1
lisp/org-agenda.el

@@ -4784,7 +4784,7 @@ HH:MM."
 	(setq x (concat (substring x 0 (match-end 1))
 	(setq x (concat (substring x 0 (match-end 1))
 			(format org-agenda-todo-keyword-format
 			(format org-agenda-todo-keyword-format
 				(match-string 2 x))
 				(match-string 2 x))
-			" "
+			(org-add-props " " (text-properties-at 0 x))
 			(substring x (match-end 3)))))
 			(substring x (match-end 3)))))
       x)))
       x)))