From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?=C5=81ukasz_Stelmach?= Subject: [BUG] more problems with future timestamps Date: Thu, 25 Feb 2010 22:35:24 +0100 Message-ID: <87fx4puhgj.fsf@dasa3.iem.pw.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NklND-00046U-Tq for emacs-orgmode@gnu.org; Thu, 25 Feb 2010 16:35:55 -0500 Received: from [140.186.70.92] (port=33712 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NklNC-00046M-55 for emacs-orgmode@gnu.org; Thu, 25 Feb 2010 16:35:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NklNB-0003l9-AT for emacs-orgmode@gnu.org; Thu, 25 Feb 2010 16:35:54 -0500 Received: from lo.gmane.org ([80.91.229.12]:33188) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NklNA-0003kp-MG for emacs-orgmode@gnu.org; Thu, 25 Feb 2010 16:35:53 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NklMx-0005q0-9e for emacs-orgmode@gnu.org; Thu, 25 Feb 2010 22:35:39 +0100 Received: from dasa3.iem.pw.edu.pl ([194.29.147.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Feb 2010 22:35:39 +0100 Received: from lukasz.stelmach by dasa3.iem.pw.edu.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Feb 2010 22:35:39 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org EHLo. I think the following patch should be applied to handle the future properly. I belive the year is set by the time this part is reached. At least that is what I observe using ISO dates. When I write 1-2 (1 January) I get it in 2010. --8<---------------cut here---------------start------------->8--- diff --git a/lisp/org.el b/lisp/org.el index 8ba782a..3ef2e1c 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -13491,11 +13491,10 @@ user." (nth 3 tl) (< (nth 3 tl) (nth 3 nowdecode))) (prog1 (1+ (nth 4 nowdecode)) (setq futurep t)) (nth 4 defdecode))) - year (or (nth 5 tl) - (if (and org-read-date-prefer-future + year (if (and org-read-date-prefer-future (nth 4 tl) (< (nth 4 tl) (nth 4 nowdecode))) (prog1 (1+ (nth 5 nowdecode)) (setq futurep t)) - (nth 5 defdecode))) + (nth 5 defdecode)) hour (or (nth 2 tl) (nth 2 defdecode)) minute (or (nth 1 tl) (nth 1 defdecode)) second (or (nth 0 tl) 0) --8<---------------cut here---------------end--------------->8--- BTW when I write w2 in the org date input minibuffer Error in post-command-hook: (void-function calendar-absolute-from-iso) -- Miłego dnia, Łukasz Stelmach