From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: bug with respect to org-read-date-prefer-future Date: Fri, 08 Oct 2010 15:01:49 -0400 Message-ID: <8739sgy0de.fsf@gollum.intra.norang.ca> References: <87eic0zuzj.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=36341 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P4ID8-00005G-AN for emacs-orgmode@gnu.org; Fri, 08 Oct 2010 15:02:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P4ICe-0002fr-Ih for emacs-orgmode@gnu.org; Fri, 08 Oct 2010 15:02:03 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:53753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P4ICe-0002fa-GZ for emacs-orgmode@gnu.org; Fri, 08 Oct 2010 15:02:00 -0400 In-Reply-To: <87eic0zuzj.wl%ucecesf@ucl.ac.uk> (Eric S. Fraga's message of "Fri, 08 Oct 2010 14:15:12 +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: Eric S Fraga , Carsten Dominik Cc: org-mode mailing list Eric S Fraga writes: > Recently, but I cannot say for how long, I have found that dates > entered, for instance using "j" in the standard agenda view, no longer > choose a time/day in the future but seem to default to the current > year. For instance, today, typing "j 2 feb RET" (with a real space > between 2 and feb) jumps me to 2010 February 2, not 2011. > > > #+begin_src emacs-lisp :results > (describe-variable 'org-read-date-prefer-future) > #+end_src > > #+results: > #+begin_example > org-read-date-prefer-future is a variable defined in `org.el'. > Its value is time > > Documentation: > Non-nil means assume future for incomplete date input from user. > This affects the following situations: > 1. The user gives a month but not a year. > For example, if it is April and you enter "feb 2", this will be read > as Feb 2, *next* year. "May 5", however, will be this year. > 2. The user gives a day, but no month. > For example, if today is the 15th, and you enter "3", Org-mode will > read this as the third of *next* month. However, if you enter "17", > it will be considered as *this* month. > > If you set this variable to the symbol `time', then also the following > will work: > > 3. If the user gives a time, but no day. If the time is before now, > to will be interpreted as tomorrow. > > Currently none of this works for ISO week specifications. > > When this option is nil, the current day, month and year will always be > used as defaults. > > You can customize this variable. > #+end_example > > so according to the documentation should work as I expect but > doesn't... Have I misunderstood something? > > Thanks, > eric > > > #+begin_src emacs-lisp :results > (format "%s\n%s\n" (org-version) (emacs-version)) > #+end_src > > #+results: > : Org-mode version 7.01trans (release_7.01h.645.g09015) > : GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) > : of 2010-08-14 on raven, modified by Debian Hi Eric, This was recently changed in commit 03b178d (Do not prefer future when jumping to a date in the agenda, 2010-09-21) by Carsten after an offline discussion with me. The behaviour changed for the 'j' command in the agenda only but not for other date prompts. The justification for this was at the start of a new month you need to enter the year to go back to a date a week or two ago in the agenda which seemed inconvenient. Carsten noticed that I had set org-read-date-prefer-future to nil in http://doc.norang.ca/org-mode.html and questioned why that was necessary. After a short discussion he decided to change the default behaviour for the agenda j command only. Please comment on whether this change is good or bad. The docstring should be more clear about this change if we decide to keep it. Regards, Bernt