From: Nicolas Goaziou <n.goaziou@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Timestamps: Handle sub-10-min ranges when updating timestamps
Date: Thu, 08 Aug 2013 10:22:58 +0200 [thread overview]
Message-ID: <87wqnwa8wt.fsf@gmail.com> (raw)
In-Reply-To: <877gfwvgll.fsf@gmail.com> (Trevor Murphy's message of "Wed, 07 Aug 2013 23:31:18 -0700")
Trevor Murphy <trevor.m.murphy@gmail.com> writes:
> Schedule an event for today with a five-minute duration. E.g:
>
> * TODO test out bug in `org-schedule'
> SCHEDULED: <2013-08-07 Wed 17:00-17:05>
>
> Then hit C-c C-s (or however you have `org-schedule' bound). With the
> default setup, you'd expect to see the following prompt in the
> minibuffer:
>
> Date+time [2013-08-07]: 17:00+0:05
>
> however what you'll get instead is:
>
> Date+time [2013-08-07]: 17:00+0:5
>
> The latter is not a valid time spec. If you simply accept it, then at
> least on my install org reschedules the event to:
>
> SCHEDULED: <2013-08-07 Wed-17:00>
>
> Which is not what I intended. I'll add that you can get the same buggy
> behavior from any command that calls `org-time-stamp' on an
> already-timestamped event with <10 minute duration.
OK. Thank you for the explanation.
> I tested that and it felt noticeably slower when I called
> `org-reschedule'. The extra `if' and `concat' did not feel slower. I
> didn't do explicit timings because of the subjective feel (also because
> I'm not really sure how to do those tests yet). That being said, I
> agree with you.
I doubt the difference between the two is noticeable. Something else
happened when calling `org-reschedule'.
> If you prefer, I'll resubmit the patch without the if => when and using
> the format string.
Please do. I'll apply it then.
Regards,
--
Nicolas Goaziou
prev parent reply other threads:[~2013-08-08 8:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-01 1:48 [PATCH] Timestamps: Handle sub-10-min ranges when updating timestamps Trevor Murphy
2013-08-07 13:56 ` Nicolas Goaziou
2013-08-08 6:31 ` Trevor Murphy
2013-08-08 8:22 ` Nicolas Goaziou [this message]
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=87wqnwa8wt.fsf@gmail.com \
--to=n.goaziou@gmail.com \
--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).