From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Point jumps when changing timestamps Date: Thu, 04 Aug 2011 13:45:56 -0500 Message-ID: <8739hh10d7.fsf@fastmail.fm> References: <87d3gmy3w9.fsf@fastmail.fm> <87ei11yxm2.fsf@gmail.com> <87oc05f7x7.fsf@fastmail.fm> <87aabpyrtx.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qp2vf-0005oN-B9 for emacs-orgmode@gnu.org; Thu, 04 Aug 2011 14:46:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qp2ve-0004FC-6u for emacs-orgmode@gnu.org; Thu, 04 Aug 2011 14:45:59 -0400 Received: from out3.smtp.messagingengine.com ([66.111.4.27]:60114) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qp2ve-0004F4-4Y for emacs-orgmode@gnu.org; Thu, 04 Aug 2011 14:45:58 -0400 In-Reply-To: <87aabpyrtx.fsf@gmail.com> (Nicolas Goaziou's message of "Thu, 04 Aug 2011 20:06:18 +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: Nicolas Goaziou Cc: Org Mode Nicolas Goaziou writes: > Matt Lundin writes: > >> A bit more generous org-at-timestamp-p does have some practical >> advantages: it can save cursor movement when navigating an org document. >> For instance, when navigating the following headline, I would typically >> type C-n C-e to go to the end of the scheduled line. That puts the >> cursor at the point directly after the scheduled timestamp: >> >> * A headline >> SCHEDULED: <2011-08-04 Thu> >> ^ i.e., here >> >> Having to move the cursor backwards one point would add a little bit of >> inconvenience. > > C-c C-s on the headline lets you modify more quickly the > time-stamp. I may be missing the point, but that position has no > particular interest. I realize that I can change a scheduled timestamp with C-s C-s, and I often do. But I often find myself needing to move appointments such as the following back and forward a day: * An appointment <2011-08-04 Thu +1w> If I am on the headline, the easiest way (for me) to navigate to the headline is C-n C-e. Then I can type S-left or S-right and quickly move through the dates; the cursor, moreover, will be in a convenient position for typing RET and adding a line of notes. This, for me, is a bit more convenient than typing C-n C-3 C-f or C-s <, etc. >> I believe the current behavior of org-at-timestamp-p is consistent with >> that of the *-at-point functions. > > Agreed. But, on the other hand, it isn't consistent with any similar Org > function. Try `org-footnote-at-reference-p' just after a footnote > reference or `org-context' just after a link. In both cases, point will > be considered outside of the element. True. (Thanks for pointing out org-context! I wasn't aware of that function.) From a UI perspective, however, I would suggest that a bit looser behavior adds some convenience to org-mode. For instance C-c C-o will currently open a link if the cursor is at the point before or after it. [[http://www.google.com]] ^ here ^ here Best, Matt