From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arne Subject: before first heading and nil-type agenda Date: Thu, 13 Nov 2008 02:58:46 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L0SQB-0004ex-8W for emacs-orgmode@gnu.org; Wed, 12 Nov 2008 21:59:03 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L0SQ9-0004eM-N1 for emacs-orgmode@gnu.org; Wed, 12 Nov 2008 21:59:02 -0500 Received: from [199.232.76.173] (port=54767 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0SQ9-0004eH-BD for emacs-orgmode@gnu.org; Wed, 12 Nov 2008 21:59:01 -0500 Received: from main.gmane.org ([80.91.229.2]:35737 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L0SQ9-0007IG-1n for emacs-orgmode@gnu.org; Wed, 12 Nov 2008 21:59:01 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L0SQ2-0001ks-Lh for emacs-orgmode@gnu.org; Thu, 13 Nov 2008 02:58:55 +0000 Received: from ip98-166-136-35.hr.hr.cox.net ([98.166.136.35]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Nov 2008 02:58:54 +0000 Received: from freyberger.arne by ip98-166-136-35.hr.hr.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Nov 2008 02:58:54 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I was having trouble getting a complete week view agenda and the left arrow and right arrow would not move the agenda to subsequent weeks (the error displayed would be "nil-type agenda"). The error in the Messages buffer was "org-back-to-heading: before first heading". After some digging in my files I tracked it down to a malformed heading: The following causes nil-type agenda, or before first heading errors: - *My heading This is what fixes it, note the space after the "*" - * My heading I post this in case other users are struggling with the same issues and are looking for a fix. Since anyline that start with one or more "*" should have a space before the first character, the org code could automatically fix or prompt the user to fix/warn of lines that are missing the space. I am not a lisp programmer, so I apologize for not jumping in and coding the solution.