From mboxrd@z Thu Jan 1 00:00:00 1970 From: Antoine Levitt Subject: Re: org-agenda-switch-to switches to weird place Date: Tue, 11 Oct 2011 19:15:33 +0200 Message-ID: <87r52jqwju.fsf@gmail.com> References: <87lisrwmf7.fsf@gmail.com> <804nzf79zu.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDg9i-0005LS-HF for emacs-orgmode@gnu.org; Tue, 11 Oct 2011 13:30:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDg9h-00089w-4J for emacs-orgmode@gnu.org; Tue, 11 Oct 2011 13:30:18 -0400 Received: from lo.gmane.org ([80.91.229.12]:51220) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDg9g-00089l-R3 for emacs-orgmode@gnu.org; Tue, 11 Oct 2011 13:30:17 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RDg9f-0005Vb-Ck for emacs-orgmode@gnu.org; Tue, 11 Oct 2011 19:30:15 +0200 Received: from ney92-7-78-233-218-202.fbx.proxad.net ([78.233.218.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Oct 2011 19:30:15 +0200 Received: from antoine.levitt by ney92-7-78-233-218-202.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Oct 2011 19:30:15 +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 11/10/11 18:45, Sebastien Vauban > Hi Antoine, > > Antoine Levitt wrote: >> I use org-capture to store information (such as appointments), then view >> them in the agenda. I use RET (org-agenda-switch-to) in the agenda view to >> modify them. For instance, for an entry like >> >> * TODO Some task >> SCHEDULED: !<2011-10-11 Tue> >> >> , point is at "!", which is inconvenient, because most of the time I want to >> modify the heading of the entry ("Some task"). A nice place to put the point >> would be at the %? specifier of org-capture-templates, if specified. >> Apparently, org-capture does the job of inserting a marker for >> org-agenda-switch-to to come back to, so it should be able to figure out if >> %? was specified, and if yes, where. I couldn't manage to do it, though. >> Could someone take a look at this? > > I guess one could imagine that it should be possible to customize a point to > land on when switching from the agenda to the source buffer. That seems a bit overkill. But then again, this is org. :-) > But I don't see how org-capture templates would come into play: your different > capture templates can have very different positions for %?, and once captured, > a note or TODO is no different than free text that the user would have written > manually. If I understand correctly, org-agenda-switch-to goes to the org-marker marker that is set by capture. If capture inserts this marker right after the template insertion, org-agenda can then switch back to it. In theory at least. I can't make sense of org-capture's code. Anyway, pretty much anything is better than the current behavior, which is not very user friendly when SCHEDULED info is present.