Browse Source

Bug fixes.

Carsten Dominik 16 years ago
parent
commit
58325c8df0
3 changed files with 9 additions and 5 deletions
  1. 2 2
      ORGWEBPAGE/Changes.org
  2. 3 0
      lisp/ChangeLog
  3. 4 3
      lisp/org-agenda.el

+ 2 - 2
ORGWEBPAGE/Changes.org

@@ -150,7 +150,7 @@
     You may set these tags with in-buffer options
     You may set these tags with in-buffer options
     =EXPORT_SELECT_TAGS= and =EXPORT_EXCLUDE_TAGS=.
     =EXPORT_SELECT_TAGS= and =EXPORT_EXCLUDE_TAGS=.
 
 
-    I love this feature.  Thanks to Richard G Rigley for coming
+    I love this feature.  Thanks to Richard G Riley for coming
     up with the idea.
     up with the idea.
 
 
 *** Prefix interpretation when storing remember notes
 *** Prefix interpretation when storing remember notes
@@ -222,7 +222,7 @@
 
 
 *** New face =org-scheduled= for entries scheduled in the future.
 *** New face =org-scheduled= for entries scheduled in the future.
 
 
-    This was a request by Richard G Rigley.
+    This was a request by Richard G Riley.
 
 
 *** Remember templates for gnus links can now use the :to escape.
 *** Remember templates for gnus links can now use the :to escape.
 
 

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2008-09-19  Carsten Dominik  <dominik@science.uva.nl>
 2008-09-19  Carsten Dominik  <dominik@science.uva.nl>
 
 
+	* org-agenda.el (org-agenda-highlight-todo): Fix bugs with keyword
+	matching.
+
 	* org.el (org-scan-tags): Make sure that tags matching is not case
 	* org.el (org-scan-tags): Make sure that tags matching is not case
 	sensitive.  TODO keyword matching is case sensitive, however, to
 	sensitive.  TODO keyword matching is case sensitive, however, to
 	avoid confusion with similar words that are not meant to be
 	avoid confusion with similar words that are not meant to be

+ 4 - 3
lisp/org-agenda.el

@@ -3858,15 +3858,16 @@ HH:MM."
     (mapconcat 'identity (sort list 'org-entries-lessp) "\n")))
     (mapconcat 'identity (sort list 'org-entries-lessp) "\n")))
 
 
 (defun org-agenda-highlight-todo (x)
 (defun org-agenda-highlight-todo (x)
-  (let (re pl)
+  (let ((org-done-keywords org-done-keywords-for-agenda)
+	 re pl)
     (if (eq x 'line)
     (if (eq x 'line)
 	(save-excursion
 	(save-excursion
 	  (beginning-of-line 1)
 	  (beginning-of-line 1)
 	  (setq re (get-text-property (point) 'org-todo-regexp))
 	  (setq re (get-text-property (point) 'org-todo-regexp))
 	  (goto-char (+ (point) (or (get-text-property (point) 'prefix-length) 0)))
 	  (goto-char (+ (point) (or (get-text-property (point) 'prefix-length) 0)))
-	  (when (looking-at (concat "[ \t]*\\.*" re " +"))
+	  (when (looking-at (concat "[ \t]*\\.*\\(" re "\\) +"))
 	    (add-text-properties (match-beginning 0) (match-end 0)
 	    (add-text-properties (match-beginning 0) (match-end 0)
-				 (list 'face (org-get-todo-face 0)))
+				 (list 'face (org-get-todo-face 1)))
 	    (let ((s (buffer-substring (match-beginning 1) (match-end 1))))
 	    (let ((s (buffer-substring (match-beginning 1) (match-end 1))))
 	      (delete-region (match-beginning 1) (1- (match-end 0)))
 	      (delete-region (match-beginning 1) (1- (match-end 0)))
 	      (goto-char (match-beginning 1))
 	      (goto-char (match-beginning 1))