From: Matt Lundin <mdl@imapmail.org>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Bug: org-capture-templates with %^t
Date: Thu, 05 Oct 2017 09:43:08 -0500 [thread overview]
Message-ID: <87bmlllkpz.fsf@fastmail.fm> (raw)
In-Reply-To: <87h8vfj0bo.fsf@fastmail.fm> (Matt Lundin's message of "Tue, 03 Oct 2017 18:21:16 -0500")
Matt Lundin <mdl@imapmail.org> writes:
> After commit 51b431d01365211d4c40b07729d5d11d82b9dfe2,
> org-capture-templates containing %^t do not work as expected.
>
> The relevant capture template snippet looks like this:
>
> (setq org-capture-templates
> '(("a" "Appointment" entry (file "~/inbox.org") "* %^{Appt}\n %^t%?\n %U\n
> %a\n\n %i")))
>
> With this capture template, I am prompted to enter a time via
> org-read-date. The expected behavior is as follows:
>
> - if I enter a date and time of day, the resulting timestamp should
> contain the time of day:
> - i.e., entering "Thu 8am" should yield "<2017-10-05 Thu 08:00>"
>
> What happens now:
>
> - when I enter a date with a time of day, the timestamp is truncated
> and contains only a date
> - I.e., entering "Thu 8am" now yields "<2017-10-05 Thu>"
>
There is a further bug here. With the capture template above, if I enter
a time range - i.e., an end time - the timestamp in the capture buffer
is incorrect.
Entering... "Thu 8am-10am" yields...
<2017-10-05 Thu-10:00>
Best,
Matt
next prev parent reply other threads:[~2017-10-05 14:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-03 23:21 Bug: org-capture-templates with %^t Matt Lundin
2017-10-05 14:43 ` Matt Lundin [this message]
2017-10-06 15:20 ` Matt Lundin
2017-10-06 17:15 ` Nicolas Goaziou
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bmlllkpz.fsf@fastmail.fm \
--to=mdl@imapmail.org \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.