From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug, org.el] Wrong guess of future date Date: Tue, 06 Jan 2015 23:22:16 +0100 Message-ID: <87oaqba6sn.fsf@nicolasgoaziou.fr> References: <87tx05fnmf.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8cVB-0005sM-7B for emacs-orgmode@gnu.org; Tue, 06 Jan 2015 17:21:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y8cV5-0002pm-UR for emacs-orgmode@gnu.org; Tue, 06 Jan 2015 17:21:25 -0500 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:50955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8cV5-0002nv-OX for emacs-orgmode@gnu.org; Tue, 06 Jan 2015 17:21:19 -0500 In-Reply-To: <87tx05fnmf.fsf@gmx.us> (rasmus@gmx.us's message of "Mon, 05 Jan 2015 12:55:20 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org Hello, Rasmus 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