emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: org-agenda-switch-to switches to weird place
Date: Tue, 11 Oct 2011 18:45:25 +0200	[thread overview]
Message-ID: <804nzf79zu.fsf@somewhere.org> (raw)
In-Reply-To: 87lisrwmf7.fsf@gmail.com

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.

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.

So, you can't get a behavior depending on any template, IIUC.

Best regards,
  Seb

-- 
Sebastien Vauban

  reply	other threads:[~2011-10-11 16:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-11 15:57 org-agenda-switch-to switches to weird place Antoine Levitt
2011-10-11 16:45 ` Sebastien Vauban [this message]
2011-10-11 17:15   ` Antoine Levitt
2011-10-11 19:35     ` Sebastien Vauban
2011-10-11 20:24       ` Antoine Levitt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=804nzf79zu.fsf@somewhere.org \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).