emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Error message could be improved - Specified time is not representable
@ 2011-05-24  7:06 Julian Bean
  2011-05-24  8:16 ` Giovanni Ridolfi
  0 siblings, 1 reply; 3+ messages in thread
From: Julian Bean @ 2011-05-24  7:06 UTC (permalink / raw)
  To: emacs-orgmode

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

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

end of thread, other threads:[~2011-05-24  8:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-24  7:06 Error message could be improved - Specified time is not representable Julian Bean
2011-05-24  8:16 ` Giovanni Ridolfi
2011-05-24  8:31   ` Julian Bean

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