Explorar o código

Fix bugs with time extraction of deadlines.

Carsten Dominik %!s(int64=16) %!d(string=hai) anos
pai
achega
c24383d1c6
Modificáronse 2 ficheiros con 8 adicións e 2 borrados
  1. 4 0
      lisp/ChangeLog
  2. 4 2
      lisp/org-agenda.el

+ 4 - 0
lisp/ChangeLog

@@ -1,5 +1,9 @@
 2008-09-04  Carsten Dominik  <dominik@science.uva.nl>
 
+	* org-agenda.el (org-agenda-get-deadlines)
+	(org-agenda-get-scheduled): Avoid `time-of-day' extraction for
+	entries that are pre-warnings of deadlines or reminders.
+
 	* org.el (org-sort-entries-or-items): Make numeric and alpha
 	comparisons ignore any TODO keyword and priority cookie.
 

+ 4 - 2
lisp/org-agenda.el

@@ -3428,7 +3428,8 @@ the documentation of `org-diary'."
 				       (funcall (nth 1 org-agenda-deadline-leaders) diff date)
 				     (format (nth 1 org-agenda-deadline-leaders)
 					     diff)))
-				 head category tags timestr))))
+				 head category tags
+				 (if (not (= diff 0)) nil timestr)))))
 		(setq txt org-agenda-no-heading-message))
 	      (when txt
 		(setq face (org-agenda-deadline-face dfrac wdays))
@@ -3511,7 +3512,8 @@ FRACTION is what fraction of the head-warning time has passed."
 				     (car org-agenda-scheduled-leaders)
 				   (format (nth 1 org-agenda-scheduled-leaders)
 					   (- 1 diff)))
-				 head category tags timestr))))
+				 head category tags
+				 (if (not (= diff 0)) nil timestr)))))
 		(setq txt org-agenda-no-heading-message))
 	      (when txt
 		(setq face