From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: before first heading and nil-type agenda Date: Thu, 13 Nov 2008 10:18:13 +0100 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L0YLF-00052E-Lw for emacs-orgmode@gnu.org; Thu, 13 Nov 2008 04:18:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L0YLF-000522-8X for emacs-orgmode@gnu.org; Thu, 13 Nov 2008 04:18:21 -0500 Received: from [199.232.76.173] (port=42244 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0YLF-00051z-1I for emacs-orgmode@gnu.org; Thu, 13 Nov 2008 04:18:21 -0500 Received: from ug-out-1314.google.com ([66.249.92.169]:62486) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L0YLE-0002UC-UK for emacs-orgmode@gnu.org; Thu, 13 Nov 2008 04:18:21 -0500 Received: by ug-out-1314.google.com with SMTP id 36so1532439uga.17 for ; Thu, 13 Nov 2008 01:18:20 -0800 (PST) In-Reply-To: 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: Arne Cc: emacs-orgmode@gnu.org Hi Arne, thanks for this post. First of all, font-lock should help to see easily if a heading is incorrect, because the incorrect heading you showed would not be fontified like a heading. In addition, I have just installed a wrapper around `outline-back-to- heading', where this error originates. The new error message will now specify buffer and position of the error, so you can more easily find and fix the error. HTH. - Carsten On Nov 13, 2008, at 3:58 AM, Arne wrote: > 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. > > > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode