emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Adding duration which spans days produces invalid timestamps & confusing errors [9.1.13 (9.1.13-elpa @ /home/ieure/.emacs.d/elpa/org-9.1.13/)]
@ 2018-05-16 14:18 Ian Eure
  0 siblings, 0 replies; only message in thread
From: Ian Eure @ 2018-05-16 14:18 UTC (permalink / raw)
  To: emacs-orgmode


Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------

I spent far too long figuring out why I was getting this error when I
pulled up my week agenda with C-c a a

org-duration-to-minutes: Invalid duration format: "+2:00"

The string "+2:00" doesn’t appear anywhere in my org files.  After
bisecting the list of files, then the contents of the one that was
causing issues, I found that it was due to this timestamp:

<2018-05-16 Wed 22:00-26:00>

There are only 24 hours in the day, but this says 26.  Oops.  This
surprised me, because this had been created by doing:

C-c . 22:00+4

I use this shortcut a lot, since it’s easier for me to think about the
duration rather than do the mental math to come up with the ending
hour.

I’m not sure it’s a good idea to insert a span timestamp in this case,
but I think at a minimum, Org ought to error in this case, rather than
producing a timestamp it can’t consume.

It would also be good if the error was clearer, ideally telling you
the exact file/line the erroneous timestamp was on.




Emacs  : GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
 of 2018-05-07, modified by Debian
Package: Org mode version 9.1.13 (9.1.13-elpa @ /home/ieure/.emacs.d/elpa/org-9.1.13/)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-05-16 20:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-16 14:18 Bug: Adding duration which spans days produces invalid timestamps & confusing errors [9.1.13 (9.1.13-elpa @ /home/ieure/.emacs.d/elpa/org-9.1.13/)] Ian Eure

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).