[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [bug, org.el] Wrong guess of future date
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [bug, org.el] Wrong guess of future date |
Date: |
Tue, 06 Jan 2015 23:22:16 +0100 |
Hello,
Rasmus <address@hidden> writes:
> There seems to be a bug in `org-read-date-analyze' so that when
> re-scheduling from 2014 to 2014, the year is not updated.
>
> Here's an example. Type 30 in the rescheduling prompt. It will be
> rescheduled to <2014-12-30> rather than <2015-01-30> as expected when
> org-read-date-prefer-future is non-nil.
>
> (let* ((file (make-temp-file ""))
> (org-read-date-prefer-future t)
> (org-agenda-files (list file)))
> (save-window-excursion
> (find-file file)
> (insert "* TODO Document\nSCHEDULED: <2014-12-25>")
> (org-mode)
> (save-buffer))
> (org-agenda-list)
> (goto-char (point-min))
> (search-forward "TODO")
> (org-agenda-schedule 0)
> (find-file file)
> (goto-char (point-min))
> (org-show-entry))
This should be fixed. Thank you for reporting it.
Regards,
--
Nicolas Goaziou