From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Re: How exactly does "C-c ." work in an existing timestamp? Date: Tue, 05 Jan 2016 20:16:18 +0200 Message-ID: <87fuybq4ct.fsf@iki.fi> References: <87fuyctb8m.fsf@iki.fi> <87d1tgawij.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGW9q-0007mw-AR for emacs-orgmode@gnu.org; Tue, 05 Jan 2016 13:16:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGW9m-0006Bi-9J for emacs-orgmode@gnu.org; Tue, 05 Jan 2016 13:16:34 -0500 Received: from plane.gmane.org ([80.91.229.3]:40845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGW9m-0006BM-27 for emacs-orgmode@gnu.org; Tue, 05 Jan 2016 13:16:30 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aGW9j-00059j-H0 for emacs-orgmode@gnu.org; Tue, 05 Jan 2016 19:16:27 +0100 Received: from 82-181-168-52.bb.dnainternet.fi ([82.181.168.52]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Jan 2016 19:16:27 +0100 Received: from jarmo.hurri by 82-181-168-52.bb.dnainternet.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Jan 2016 19:16:27 +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: emacs-orgmode@gnu.org Nick Dokos writes: > Jarmo Hurri writes: > >> # ---------------------------------- >> * testing >> <2016-01-07 Thu 15:00-16:15> >> # ---------------------------------- >> >> When I move my cursor inside the timestamp and press "C-c .", control >> jumps to a minibuffer in the echo area. But when I try, in the echo >> area, to modify the date in the timestamp, it gets a bit weird to me. >> >> 1. If I try to use the method specified in the documentation to bump the >> date one day forward by typing +1d, nothing sensible happens. It >> doesn't matter if I type "+1d" directly, or " +1d" with a leading >> space. >> > > That's relative to *today*, not relative to the existing timestamp. > +1d changes it to tomorrow. Does that not work for you? No it doesn't. What's happening...? Are you sure that you are using _exactly_ the same timestamp I am using, with the time included in addition to the date: <2016-01-07 Thu 15:00-16:15> So if you in this timestamp do "C-c ." followed by _nothing else_ than "+1d", date switches to tomorrow? A related thing: the documentation on timestamps says that "Org mode will find whatever information is in there and derive anything you have not specified from the default date and time. The default is usually the current date and time, but when modifying an existing timestamp, or when entering the second stamp of a range, it is taken from the stamp in the buffer." So does this imply that "+1d" - if it would work - should actually add one day to the given timestamp, not today? >> 2. If I type " 8" (note leading space), the date will move to the 8th, >> that is, forward by one day. But a leading space is required. >> > > Not here - with or without space, it changes it to next Friday > 2016-01-08. Nope, doesn't work here without the space, using the timestamp I wrote above. I am in GNU Emacs 24.5.1, running the latest Org from git repo. >> 3. If I move my cursor on top of the current date, still in the echo >> area, the start time of the meeting and the duration start jumping >> forward in the echo area. Please find attached a screenshot of what >> the situation looks like. (This at least looks like a bug, or a >> "feature.") > > Yes, that's weird - not sure what causes this. Ok, but it is actually a secondary - or tertiary - issue. Jarmo