emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: specifying end time of date as +0:20 [9.4.4 (release_9.4.4 @ /usr/local/share/emacs/28.0.50/lisp/org/)]
@ 2021-05-09 18:21 Stephen Eglen
  2021-05-09 20:06 ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Eglen @ 2021-05-09 18:21 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I'm trying to understand the syntax (e.g. ‘11am+2:15’) for specifying
the end time of an event, from (info "(org)The date/time prompt")

It works okay if I do org-deadline with 11am+2:15

* test 3
DEADLINE: <2021-05-09 Sun 11:00-13:15>

but if I do 11pm+2:15 then it gets confused:

* test 4 
DEADLINE: <2021-05-09 Sun 23:00-25:15>

and when I next call the agenda, I get an error:

org-duration-to-minutes: Invalid duration format: "+1:15"

Also, I couldn't see any mention in the documentation of
org-agenda-default-appointment-duration -- is that worth mentioning in
the node, e.g. after ‘11am+2:15’      ⇒ same as above

"If you do not specify an end time, then you can provide a default
duration by setting org-agenda-default-appointment-duration."

Best wishes, Stephen






Emacs  : GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.28, cairo version 1.17.4)
 of 2021-04-28
Package: Org mode version 9.4.4 (release_9.4.4 @ /usr/local/share/emacs/28.0.50/lisp/org/)



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: specifying end time of date as +0:20 [9.4.4 (release_9.4.4 @ /usr/local/share/emacs/28.0.50/lisp/org/)]
  2021-05-09 18:21 Bug: specifying end time of date as +0:20 [9.4.4 (release_9.4.4 @ /usr/local/share/emacs/28.0.50/lisp/org/)] Stephen Eglen
@ 2021-05-09 20:06 ` Nicolas Goaziou
  2021-05-09 21:45   ` Stephen Eglen
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2021-05-09 20:06 UTC (permalink / raw)
  To: Stephen Eglen; +Cc: emacs-orgmode

Hello,

Stephen Eglen <sje30@cam.ac.uk> writes:

> I'm trying to understand the syntax (e.g. ‘11am+2:15’) for specifying
> the end time of an event, from (info "(org)The date/time prompt")
>
> It works okay if I do org-deadline with 11am+2:15
>
> * test 3
> DEADLINE: <2021-05-09 Sun 11:00-13:15>
>
> but if I do 11pm+2:15 then it gets confused:
>
> * test 4 
> DEADLINE: <2021-05-09 Sun 23:00-25:15>
>
> and when I next call the agenda, I get an error:
>
> org-duration-to-minutes: Invalid duration format: "+1:15"

I solved this part on maint branch.

> Also, I couldn't see any mention in the documentation of
> org-agenda-default-appointment-duration -- is that worth mentioning in
> the node, e.g. after ‘11am+2:15’      ⇒ same as above
>
> "If you do not specify an end time, then you can provide a default
> duration by setting org-agenda-default-appointment-duration."

Sure. Patch welcome.

Regards,
-- 
Nicolas Goaziou


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: specifying end time of date as +0:20 [9.4.4 (release_9.4.4 @ /usr/local/share/emacs/28.0.50/lisp/org/)]
  2021-05-09 20:06 ` Nicolas Goaziou
@ 2021-05-09 21:45   ` Stephen Eglen
  2021-05-10 16:08     ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Eglen @ 2021-05-09 21:45 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode, Stephen Eglen


> I solved this part on maint branch.

Thank you!



> Sure. Patch welcome.

diff --git a/doc/org-manual.org b/doc/org-manual.org
index ab12fa70a..ea8901f28 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -6074,6 +6074,11 @@ separator in the latter case, e.g.:
 | =11am--1:15pm= | \rArr{} same as above |
 | =11am+2:15=    | \rArr{} same as above |
 
+If you do not specify an end time, then you can provide a default
+duration by setting ~org-agenda-default-appointment-duration~ to a
+suitable non-~nil~ value.
+
+
 #+cindex: calendar, for selecting date
 #+vindex: org-popup-calendar-for-date-prompt
 Parallel to the minibuffer prompt, a calendar is popped up[fn:62].



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: specifying end time of date as +0:20 [9.4.4 (release_9.4.4 @ /usr/local/share/emacs/28.0.50/lisp/org/)]
  2021-05-09 21:45   ` Stephen Eglen
@ 2021-05-10 16:08     ` Nicolas Goaziou
  2021-05-11 15:21       ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2021-05-10 16:08 UTC (permalink / raw)
  To: Stephen Eglen; +Cc: emacs-orgmode

Hello,

Stephen Eglen <sje30@cam.ac.uk> writes:

>> I solved this part on maint branch.
>
> Thank you!

Aaaaand I reverted it because the "fix" introduced other issues!

To be continued…

Regards,
-- 
Nicolas Goaziou


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: specifying end time of date as +0:20 [9.4.4 (release_9.4.4 @ /usr/local/share/emacs/28.0.50/lisp/org/)]
  2021-05-10 16:08     ` Nicolas Goaziou
@ 2021-05-11 15:21       ` Nicolas Goaziou
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2021-05-11 15:21 UTC (permalink / raw)
  To: Stephen Eglen; +Cc: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Stephen Eglen <sje30@cam.ac.uk> writes:
>
>>> I solved this part on maint branch.
>>
>> Thank you!
>
> Aaaaand I reverted it because the "fix" introduced other issues!

I pushed another fix. *crossing fingers*

Regards,


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-05-11 15:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-09 18:21 Bug: specifying end time of date as +0:20 [9.4.4 (release_9.4.4 @ /usr/local/share/emacs/28.0.50/lisp/org/)] Stephen Eglen
2021-05-09 20:06 ` Nicolas Goaziou
2021-05-09 21:45   ` Stephen Eglen
2021-05-10 16:08     ` Nicolas Goaziou
2021-05-11 15:21       ` Nicolas Goaziou

Code repositories for project(s) associated with this 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).