emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: [Bug] org-capture datetree+prompt: wrong time (range) information in timestamp (%T escape sequence)
Date: Mon, 24 Sep 2012 16:00:20 +0200	[thread overview]
Message-ID: <87d31bo70r.fsf@bzg.ath.cx> (raw)
In-Reply-To: <20120923194954.GE25237@boo.workgroup> (Gregor Zattler's message of "Sun, 23 Sep 2012 21:49:54 +0200")

Hi Gregor,

Gregor Zattler <telegraph@gmx.net> writes:

> But there are two problems with the time information, which I
> consider to be bugs:
>
> 1) If I enter a time *range* at the prompt, the %T expands to the
>    time when I invoked the capture ("now") while the date is
>    still the entered day, not today.  This is a mixture of the
>    events date / recording time which I consider to be a bug.
>    Instead I expect to see the date and time range of the
>    appointment.

The %T specifier do not allow ranges.  I've changed the behavior 
here so that, when the user specifies a time range, only the first
time spec is taken into account.

> 2) If I do not enter a time at all, since for instance the date
>    is not bound to a time (e.g. holiday, birthday) the %T also
>    expands to the time when I invoked the capture ("now") while
>    the date is still the entered day, not today.

The %T specifier _requires_ a time to be set (otherwise you would use
%t), but I agree the current time looks wrong here.  So this is now
00:00 instead.  This does not look perfect, but it's better IMHO.

Thanks for reporting these bugs.

Best,

-- 
 Bastien

  reply	other threads:[~2012-09-24 14:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-23 19:49 [Bug] org-capture datetree+prompt: wrong time (range) information in timestamp (%T escape sequence) Gregor Zattler
2012-09-24 14:00 ` Bastien [this message]
2012-09-24 22:08   ` Gregor Zattler
2012-09-26 21:58     ` [FR] capture with one prompt dattree and time range (was: Re: [bug] org-capture datetree+prompt: wrong time (range) information in timestamp (%T escape sequence)) Gregor Zattler
2012-09-26 22:55       ` [FR] capture with one prompt dattree and time range Bastien

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=87d31bo70r.fsf@bzg.ath.cx \
    --to=bzg@altern.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 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).