From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anders Johansson Subject: Suggestion for improvement, org-read-date: prefer-closest-date instead of only prefer-future* Date: Sat, 15 Mar 2014 15:17:33 +0100 Message-ID: <532460FD.7050408@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOpPK-0008R2-CI for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 10:17:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOpPA-0000NW-M4 for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 10:17:50 -0400 Received: from mail-lb0-x229.google.com ([2a00:1450:4010:c04::229]:40766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOpPA-0000NF-Bi for emacs-orgmode@gnu.org; Sat, 15 Mar 2014 10:17:40 -0400 Received: by mail-lb0-f169.google.com with SMTP id q8so2613310lbi.28 for ; Sat, 15 Mar 2014 07:17:39 -0700 (PDT) Received: from [130.238.77.127] (pc127.kvk.uu.se. [130.238.77.127]) by mx.google.com with ESMTPSA id x4sm8935071lbn.2.2014.03.15.07.17.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 15 Mar 2014 07:17:38 -0700 (PDT) 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: emacs-orgmode@gnu.org Hi. I sometimes use timestamps for scheduling, sometimes for logging things (manually and a few days later). It would be pretty convenient if one could define a preferred range of time for incomplete dates, instead of just prefer-future or default to current month or year. Example: It's 2013-12-25 and I want to schedule something for 2014-01-05 and add a "log timestamp" for something last week, 2013-12-20. It would be convenient if entering "01-05" and "12-20" would do the right thing regardless of the setting of org-read-date-prefer-future. This could be to prefer the closest date, but even more configurability would be added if a sliding range of dates along a year were preferred. For example, 9 months into the future and 3 in the past so that entering "9-26" would give 2013-09-26 and entering "9-24" would give 2014-09-24. I think something like this is reasonable as it might be more common to enter a date a few months back than one almost a year into the future. I don't know if this applies as much to the case of only entering a day number though, maybe there entering "-x" covers the case of wanting to enter a date a few days back and preferring the future otherwise. Perhaps this would add to much complexity to org-read-date, with little gain, and there may certainly be complications I haven't thought of, but I think it would be an interesting option for many people. Cheers, Anders Johansson