forked from mirrors/org-mode
Bernt Hansen writes: I've been bad and let a couple of my overhead tasks slip past their deadline dates. *** TODO Q1 Accounting: October DEADLINE: <2008-11-30 Mon +1y> - CLOSING NOTE [2008-01-30 Wed 12:18] This task does not show up on my agenda anymore (probably because the year changed). If I change the deadline entry to this: DEADLINE: <2008-11-30 Mon> then it shows up as 37 days late. I'm bringing this up as soon as I noticed it just so people are aware of this. I have a few of these tasks that just dropped off my agenda (probably at the beginning of the year). This interesting bug seems only to happen when the repeat is yearly, and after crossing the December 31st year boundary. It was a sorting issue - Org-mode (in the function `org-closest-date') computes two dates that are consistent with the repeater, one before and one after the target date. When the computation is done with a preference for the past date (as it happens for deadlines), it should use the earlier date. In fact, it did choose "n1", assuming that it was the earlier one. This assumption does hold for daily, weekly and monthly repeaters, but not for yearly ones. This commits make sure that "n1" always holds the earlier date, so that the logic at the end of the function works again. |
||
---|---|---|
.. | ||
ChangeLog | ||
ChangeLog.01 | ||
org-agenda.el | ||
org-archive.el | ||
org-attach.el | ||
org-bbdb.el | ||
org-bibtex.el | ||
org-clock.el | ||
org-colview-xemacs.el | ||
org-colview.el | ||
org-compat.el | ||
org-exp.el | ||
org-export-latex.el | ||
org-faces.el | ||
org-footnote.el | ||
org-gnus.el | ||
org-id.el | ||
org-info.el | ||
org-irc.el | ||
org-jsinfo.el | ||
org-list.el | ||
org-mac-message.el | ||
org-macs.el | ||
org-mew.el | ||
org-mhe.el | ||
org-mouse.el | ||
org-plot.el | ||
org-publish.el | ||
org-remember.el | ||
org-rmail.el | ||
org-table.el | ||
org-timer.el | ||
org-vm.el | ||
org-w3m.el | ||
org-wl.el | ||
org.el |