From: "Michaël Cadilhac" <michael@cadilhac.name>
To: Adam Porter <adam@alphapapa.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Time stamped TODOs with current-time from everywhere.
Date: Sat, 5 Aug 2017 11:59:47 +0200 [thread overview]
Message-ID: <CADt3fpM50dri2OdPQNN=Y9Y-vba1BTkEXaCX7bfhiKGxXv3VLA@mail.gmail.com> (raw)
In-Reply-To: <87r2wqrboo.fsf@alphapapa.net>
On 5 August 2017 at 04:27, Adam Porter <adam@alphapapa.net> wrote:
> Michaël Cadilhac <michael@cadilhac.name> writes:
>
>> However, suppose I'm in Calfw; I jump to some date, hit SPACE and I'm
>> now in Org-Agenda mode, ready to hit k to capture (because Calfw-Org
>> does not offer this directly). Now I expect %U to still be the
>> current time stamp, and %^t to be prefilled with the date of the
>> Agenda. It so happens that *both* time stamps are the one of the
>> Agenda. Is this tweakable so that %U is always (current-time)?
>
> I'm not sure if that's a bug, since it seems like %^t should always
> prompt, or if it's intended that the agenda date fulfill the prompt.
> But either way, you should be able to use a %(sexp) form in the capture
> template to insert the current date.
Thanks for your expertise Adam. It seems indeed that
org-agenda-capture (or equivalently, setting
org-capture-use-agenda-date) affects the default date at all stages,
i.e., for %u and for the default value of %^t. This is done through
setting org-overriding-default-time. I don't think there's any reason
to change this behavior, but it may be worth adding that info in
org-capture-template's docstring. At the moment, it only says "time
stamp".
Cheers;
M.
next prev parent reply other threads:[~2017-08-05 10:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-04 17:26 Time stamped TODOs with current-time from everywhere Michaël Cadilhac
2017-08-05 2:27 ` Adam Porter
2017-08-05 9:59 ` Michaël Cadilhac [this message]
2017-08-05 10:46 ` Adam Porter
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='CADt3fpM50dri2OdPQNN=Y9Y-vba1BTkEXaCX7bfhiKGxXv3VLA@mail.gmail.com' \
--to=michael@cadilhac.name \
--cc=adam@alphapapa.net \
--cc=emacs-orgmode@gnu.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).