|
@@ -3858,15 +3858,16 @@ HH:MM."
|
|
|
(mapconcat 'identity (sort list 'org-entries-lessp) "\n")))
|
|
|
|
|
|
(defun org-agenda-highlight-todo (x)
|
|
|
- (let (re pl)
|
|
|
+ (let ((org-done-keywords org-done-keywords-for-agenda)
|
|
|
+ re pl)
|
|
|
(if (eq x 'line)
|
|
|
(save-excursion
|
|
|
(beginning-of-line 1)
|
|
|
(setq re (get-text-property (point) 'org-todo-regexp))
|
|
|
(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)
|
|
|
- (list 'face (org-get-todo-face 0)))
|
|
|
+ (list 'face (org-get-todo-face 1)))
|
|
|
(let ((s (buffer-substring (match-beginning 1) (match-end 1))))
|
|
|
(delete-region (match-beginning 1) (1- (match-end 0)))
|
|
|
(goto-char (match-beginning 1))
|