org-mode/lisp
Carsten Dominik e0bc2c7528 Bugfix: Deadlines with yearly repeat.
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.
2009-01-06 23:32:16 +01:00
..
ChangeLog Bugfix: Deadlines with yearly repeat. 2009-01-06 23:32:16 +01:00
ChangeLog.01 Split ChangeLog file into parts. 2008-05-08 08:16:38 +02:00
org-agenda.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-archive.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-attach.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-bbdb.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-bibtex.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-clock.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-colview-xemacs.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-colview.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-compat.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-exp.el LaTeX Export: More standardization 2009-01-06 17:31:44 +01:00
org-export-latex.el LaTeX Export: More standardization 2009-01-06 17:31:44 +01:00
org-faces.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-footnote.el Release 6.17b 2009-01-06 09:56:42 +01:00
org-gnus.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-id.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-info.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-irc.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-jsinfo.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-list.el LaTeX Export: More standardization 2009-01-06 17:31:44 +01:00
org-mac-message.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-macs.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-mew.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-mhe.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-mouse.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-plot.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-publish.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-remember.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-rmail.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-table.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-timer.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-vm.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-w3m.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org-wl.el Update copyright notice to 2009 2009-01-06 10:47:36 +01:00
org.el Bugfix: Deadlines with yearly repeat. 2009-01-06 23:32:16 +01:00