From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Easy entry of date ranges Date: Thu, 27 Aug 2015 11:46:00 +0800 Message-ID: <87io815r7r.fsf@ericabrahamsen.net> References: <87egip50se.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUo8i-0006lS-0Y for emacs-orgmode@gnu.org; Wed, 26 Aug 2015 23:46:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUo8e-0006Hr-PD for emacs-orgmode@gnu.org; Wed, 26 Aug 2015 23:46:11 -0400 Received: from plane.gmane.org ([80.91.229.3]:59752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUo8e-0006Hf-II for emacs-orgmode@gnu.org; Wed, 26 Aug 2015 23:46:08 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZUo8d-0004WJ-BX for emacs-orgmode@gnu.org; Thu, 27 Aug 2015 05:46:07 +0200 Received: from 114.248.7.115 ([114.248.7.115]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Aug 2015 05:46:07 +0200 Received: from eric by 114.248.7.115 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Aug 2015 05:46:07 +0200 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 Ken Mankoff writes: > On 2015-08-26 at 15:04, Nicolas Goaziou wrote: >> Ken Mankoff writes: >> >>> Org and the calendar make it fairly easy to enter time ranges, by >>> typing "--" and then the end time or "+" and then the duration. I'd >>> like to do something similar for dates, but it doesn't seem to be >>> supported. Is there an easy way to enter a date range for a scheduled >>> task? >> >> I don't think so. However, in Org, scheduling a task to date A means >> it can start from date A. Scheduling a task to "date A -- date B" >> would be equivalent to scheduling it to date A. >> >> You probably want to do scheduled + deadline, which is supported. > > No, scheduled + deadline is a different use case. The syntax I use, > =SCHEDULED: <2020-01-01>--<2020-01-07>=, is valid, there just isn't an > easy way to enter it. One (of many) use cases: a week long vacation. > This use case is supported by Org since the Agenda helpfully shows > "(1/7)", and "(2/7)", etc. before each entry. Everything else is so > efficient and has shortcuts, including time ranges, I just hoped I was > missing something here. Perhaps it hasn't been implemented yet. I think what Nicolas means is that, in the sort of use case you're outlining above, you should probably be using a plain timestamp. SCHEDULED means "I'm going to work on this TODO now", in which case a time span doesn't quite make sense -- you start working at the start of the span, and you finish when you toggle the keyword to DONE. For a vacation, a plain timestamp is more appropriate. However! That just begs the question of how to make it easier to enter a date range. That's a question I don't know the answer to -- I suspect there isn't any way but just hitting a couple of hyphens and then "C-c ." again. I suppose Org could help by setting the default date of the end time to something after the start time. Eric