emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: dybbuk-qPb3x58jdZkAvxtiuMwx3w@public.gmane.org (Erik L. Arneson)
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: `org-agenda-get-timestamps' fails on active timestamp before first headline
Date: Sun, 20 Jun 2010 13:18:10 -0700	[thread overview]
Message-ID: <m2hbkx4fwd.fsf@tyche.LNouv.com> (raw)

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

             reply	other threads:[~2010-06-20 20:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-20 20:18 Erik L. Arneson [this message]
2010-06-24  6:54 ` `org-agenda-get-timestamps' fails on active timestamp before first headline Carsten Dominik

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2hbkx4fwd.fsf@tyche.LNouv.com \
    --to=dybbuk-qpb3x58jdzkavxtiumwx3w@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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 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).