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

* Re: "Specified time is not representable" with org-timeline in 4.77
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Carsten Dominik @ 2007-06-15  5:14 UTC (permalink / raw)
  To: Jonathan Moore; +Cc: emacs-orgmode

Fixed, thanks, in particular for the full analysis of this bug.

- Carsten

On Jun 14, 2007, at 23:15, Jonathan Moore wrote:

>
> 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
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

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

* Re: "Specified time is not representable" with org-timeline in 4.77
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Carsten Dominik @ 2007-06-18  6:55 UTC (permalink / raw)
  To: Jonathan Moore; +Cc: emacs-orgmode


Thanks for your report and analysis. Will be fixed.

- Carsten

On Jun 14, 2007, at 23:15, Jonathan Moore wrote:

>
> 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
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

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