From: Julian Bean <jules@jellybean.co.uk>
To: emacs-orgmode@gnu.org
Subject: Error message could be improved - Specified time is not representable
Date: Tue, 24 May 2011 08:06:19 +0100 [thread overview]
Message-ID: <2D8D6FEC-69C7-43CF-B755-BB7BC49977AA@jellybean.co.uk> (raw)
Hi all,
On upgrading to emacs 23.3 (from emacs 23.1) my daily/weekly agenda became unusable, giving the error message "Specified time is not representable".
After a bit of poking around in the backtrace I tracked this down to an erroneous SCHEDULED date of 1st January 1904 buried inside a task. (This date was created by a bug in a script I was using to import TODOs from another system).
Evidently, for some reason, calling (encode-time 0 0 0 1 1 1904) on 23.3 causes the error above, whereas on 23.1 it's silently ignored?
I think the best thing for org-mode is to catch this error and report it to the user in a more understandable way so they can locate and fix the buggy timestamp - at least, include the full text of the timestamp so they can easily grep for it?
Jules
next reply other threads:[~2011-05-24 7:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-24 7:06 Julian Bean [this message]
2011-05-24 8:16 ` Error message could be improved - Specified time is not representable Giovanni Ridolfi
2011-05-24 8:31 ` Julian Bean
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=2D8D6FEC-69C7-43CF-B755-BB7BC49977AA@jellybean.co.uk \
--to=jules@jellybean.co.uk \
--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.