emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* `org-agenda-get-timestamps' fails on active timestamp before first headline
@ 2010-06-20 20:18 Erik L. Arneson
  2010-06-24  6:54 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Erik L. Arneson @ 2010-06-20 20:18 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi guys,

I've discovered a bug in `org-agenda-get-timestamps' wherein an active
timestamp before the first headline causes it to fail.  I realize that
this is probably an error in my use of active timestamps, but there was
no really handy error message and this bugged me for weeks.

I'm not familiar enough with org-mode to know what the correct behavior
should be here (it'd be nice to get an error message saying "Don't use
active timestamps that way!"), but here's an example .org file that will
trigger the bug:

--8<---------------cut here---------------start------------->8---
#+BEGIN: clocktable :maxlevel 3 :scope today
Clock summary at [2010-06-20 Sun 13:09]

| L | Headline                              | Time   |
|---+---------------------------------------+--------|
|   | *Total time*                          | *0:13* |
|---+---------------------------------------+--------|
| 1 | Track down funky bug <2010-06-20 Sun> | 0:13   |
#+END:

* Track down funky bug <2010-06-20 Sun>
  :LOGBOOK:
  CLOCK: [2010-06-20 Sun 12:43]
  CLOCK: [2010-06-20 Sun 12:30]--[2010-06-20 Sun 12:43] =>  0:13
  :END:
--8<---------------cut here---------------end--------------->8---

I hope this can help somebody else track down the right place to fix
this bug.

-- 
Erik Arneson <dybbuk-qPb3x58jdZkAvxtiuMwx3w@public.gmane.org>
  GPG Key ID: 1024D/62DA1D25
  Office: +1.541.291.9776
  Skype: callto://pymander


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

end of thread, other threads:[~2010-06-24  7:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-20 20:18 `org-agenda-get-timestamps' fails on active timestamp before first headline Erik L. Arneson
2010-06-24  6:54 ` 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).