From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Jumping to scheduled item from agend doesn't put cursor on to the heading Date: Thu, 20 May 2010 15:27:29 -0400 Message-ID: <87mxvutlum.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=58453 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFBP1-0001gw-L7 for emacs-orgmode@gnu.org; Thu, 20 May 2010 15:27:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OFBOy-0006jv-Me for emacs-orgmode@gnu.org; Thu, 20 May 2010 15:27:31 -0400 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:48568) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFBOy-0006jp-Iw for emacs-orgmode@gnu.org; Thu, 20 May 2010 15:27:28 -0400 In-Reply-To: (Tom's message of "Wed, 19 May 2010 17:26:49 +0000 (UTC)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Tom Cc: emacs-orgmode@gnu.org Tom writes: > If I jump to a regular TODO item from the agenda then cursor is > put on the heading line. In case of a scheduled agenda item > cursor is put to the timestamp. Is it intentional? > > I often put text content after the heading and before the > SCHEDULED timestamp, because I can easily modify the timestamp > with a hotkey, so it doesn't need to be right after the heading, > I rather put text content there for convenience. When I jump to > the heading from the agenda it puts the cursor to the timestamp > which can be at the end of the heading and it would be more > useful to have the cursor at the beginning, because my useful > content is usually there. > > Shouldn't jumping from agenda be consistent in this respect and > put the cursor always on the heading line like it does for > regular TODO items? > I believe this is the intended behavior. You can alter the position of the cursor by using the following hook: ,---- | org-agenda-after-show-hook is a variable defined in `org-agenda.el'. | Its value is shown below. | | This variable is potentially risky when used as a file local variable. | | Documentation: | Normal hook run after an item has been shown from the agenda. | Point is in the buffer where the item originated. `---- Best, Matt