From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Point jumps when changing timestamps Date: Thu, 04 Aug 2011 18:01:25 +0200 Message-ID: <87ei11yxm2.fsf@gmail.com> References: <87d3gmy3w9.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qp0Ml-0001HS-DR for emacs-orgmode@gnu.org; Thu, 04 Aug 2011 12:01:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qp0Mk-0002mR-83 for emacs-orgmode@gnu.org; Thu, 04 Aug 2011 12:01:47 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:56955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qp0Mk-0002kP-3Z for emacs-orgmode@gnu.org; Thu, 04 Aug 2011 12:01:46 -0400 Received: by wyg36 with SMTP id 36so1687274wyg.0 for ; Thu, 04 Aug 2011 09:01:44 -0700 (PDT) In-Reply-To: <87d3gmy3w9.fsf@fastmail.fm> (Matt Lundin's message of "Wed, 03 Aug 2011 09:18:46 -0500") 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: Matt Lundin Cc: Org Mode Hello, Matt Lundin writes: > I often change timestamps with S-Left or S-Right when the cursor is at > the point immediately following the timestamp: > > <2011-08-03 Wed .+1d> > ^ cursor here > > When I call S-Left or S-Right at this point, the cursor jumps to the > last character of the day of week abbreviation: > > <2011-08-04 Thu .+1d> > ^ cursor now here > > The cursor does not jump if it is already located within the brackets. I understand your point but I think Org shouldn't let you use `org-shiftleft' at this place in the first place. In my opinion, `org-at-timestamp-p' is faulty here. I know there is currently in that function a workaround to return t when point is at the char just after the time-stamp, but it just doesn't sound right to me. What do you think about it? Regards, -- Nicolas Goaziou