emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* "Specified time is not representable" with org-timeline in 4.77
@ 2007-06-14 21:15 Jonathan Moore
  2007-06-15  5:14 ` Carsten Dominik
  2007-06-18  6:55 ` Carsten Dominik
  0 siblings, 2 replies; 3+ messages in thread
From: Jonathan Moore @ 2007-06-14 21:15 UTC (permalink / raw)
  To: emacs-orgmode


I am getting an error "Specified time is not representable" when calling
org-timeline.  The backtrace looks like:

  encode-time(0 0 0 0 0 0 0 0 0)
  apply(encode-time (0 0 0 0 0 0 0 0 0))
  org-time-string-to-time(#("2007-05-10" 0 10 (fontified t mouse-face highlight
rear-nonsticky t keymap (keymap ... ... ... ... ...) face org-date)))
  org-get-all-dates(1 3994 no-ranges t nil 3)
  org-timeline(nil)
  call-interactively(org-timeline)

The problem occurs when org-time-string-to-string calls org-parse-time-string. 
This matches with org-ts-regexp1, which has a hard-coded space, so the
10-character date string isn't parsed as you'd expect.

(org-parse-time-string "2007-05-10 ") => (0 0 0 10 5 2007 nil nil nil)
(org-parse-time-string "2007-05-10")  => (0 0 0 0 0 0 0 0 0)

A fix might be just to get rid of the space in the regexp.

Best,
Jon

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

end of thread, other threads:[~2007-06-18  8:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-14 21:15 "Specified time is not representable" with org-timeline in 4.77 Jonathan Moore
2007-06-15  5:14 ` Carsten Dominik
2007-06-18  6:55 ` Carsten Dominik

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