emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* before first heading  and nil-type agenda
@ 2008-11-13  2:58 Arne
  2008-11-13  9:18 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Arne @ 2008-11-13  2:58 UTC (permalink / raw)
  To: emacs-orgmode

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. 

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

* Re: before first heading  and nil-type agenda
  2008-11-13  2:58 before first heading and nil-type agenda Arne
@ 2008-11-13  9:18 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2008-11-13  9:18 UTC (permalink / raw)
  To: Arne; +Cc: emacs-orgmode

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

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

end of thread, other threads:[~2008-11-13  9:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-13  2:58 before first heading and nil-type agenda Arne
2008-11-13  9:18 ` 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).