emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problem with org-show-todo-tree v5.02
@ 2007-07-11 16:37 Bernt Hansen
  2007-07-12 12:25 ` Carsten Dominik
  0 siblings, 1 reply; 6+ messages in thread
From: Bernt Hansen @ 2007-07-11 16:37 UTC (permalink / raw)
  To: emacs-orgmode

Hi Carsten,

I don't know if this has been reported yet but I didn't find it on the
list...

After loading the latest version of org-mode I get the following error
when trying to do C-c C-v (org-show-todo_tree)

"Must keep at least one level of headers"

v5.01 works so I've reverted to that for now.

GNU Emacs 22.0.95.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2007-03-02 on pacem, modified by Debian
Org-mode version 5.02

Thanks for all the great work!

Regards,
Bernt

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

* Re: Problem with org-show-todo-tree v5.02
  2007-07-11 16:37 Problem with org-show-todo-tree v5.02 Bernt Hansen
@ 2007-07-12 12:25 ` Carsten Dominik
  2007-07-12 14:09   ` Bernt Hansen
  0 siblings, 1 reply; 6+ messages in thread
From: Carsten Dominik @ 2007-07-12 12:25 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: emacs-orgmode

I cannot reproduce this.  Can you try to make a small example file
and tell us where the cursor is and what the folding state
of the buffer is when you call the command?

- Carsten

On Jul 11, 2007, at 18:37, Bernt Hansen wrote:

> Hi Carsten,
>
> I don't know if this has been reported yet but I didn't find it on the
> list...
>
> After loading the latest version of org-mode I get the following error
> when trying to do C-c C-v (org-show-todo_tree)
>
> "Must keep at least one level of headers"
>
> v5.01 works so I've reverted to that for now.
>
> GNU Emacs 22.0.95.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) 
> of 2007-03-02 on pacem, modified by Debian
> Org-mode version 5.02
>
> Thanks for all the great work!
>
> Regards,
> Bernt
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

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

* Re: Problem with org-show-todo-tree v5.02
  2007-07-12 12:25 ` Carsten Dominik
@ 2007-07-12 14:09   ` Bernt Hansen
  2007-07-14  0:58     ` Bernt Hansen
  0 siblings, 1 reply; 6+ messages in thread
From: Bernt Hansen @ 2007-07-12 14:09 UTC (permalink / raw)
  To: emacs-orgmode

Carsten Dominik <carsten.dominik@gmail.com> writes:

> I cannot reproduce this.  Can you try to make a small example file
> and tell us where the cursor is and what the folding state
> of the buffer is when you call the command?
>
> - Carsten
>
> On Jul 11, 2007, at 18:37, Bernt Hansen wrote:
>
>> Hi Carsten,
>>
>> I don't know if this has been reported yet but I didn't find it on the
>> list...
>>
>> After loading the latest version of org-mode I get the following error
>> when trying to do C-c C-v (org-show-todo_tree)
>>
>> "Must keep at least one level of headers"
>>
>> v5.01 works so I've reverted to that for now.
>>
>> GNU Emacs 22.0.95.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll
>> bars) of 2007-03-02 on pacem, modified by Debian
>> Org-mode version 5.02
>>

I can't reproduce it today either... :/

I'll let you know if it happens again and I'll try to isolate what I did
that causes this.

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

* Re: Problem with org-show-todo-tree v5.02
  2007-07-12 14:09   ` Bernt Hansen
@ 2007-07-14  0:58     ` Bernt Hansen
  2007-07-14  5:15       ` Carsten Dominik
  0 siblings, 1 reply; 6+ messages in thread
From: Bernt Hansen @ 2007-07-14  0:58 UTC (permalink / raw)
  To: emacs-orgmode

Bernt Hansen <bernt@alumni.uwaterloo.ca> writes:

> Carsten Dominik <carsten.dominik@gmail.com> writes:
>
>> I cannot reproduce this.  Can you try to make a small example file
>> and tell us where the cursor is and what the folding state
>> of the buffer is when you call the command?
>>
>> - Carsten
>>
>> On Jul 11, 2007, at 18:37, Bernt Hansen wrote:
>>
>>> Hi Carsten,
>>>
>>> I don't know if this has been reported yet but I didn't find it on the
>>> list...
>>>
>>> After loading the latest version of org-mode I get the following error
>>> when trying to do C-c C-v (org-show-todo_tree)
>>>
>>> "Must keep at least one level of headers"
>>>
>>> v5.01 works so I've reverted to that for now.
>>>
>>> GNU Emacs 22.0.95.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll
>>> bars) of 2007-03-02 on pacem, modified by Debian
>>> Org-mode version 5.02
>>>
>
> I can't reproduce it today either... :/
>
> I'll let you know if it happens again and I'll try to isolate what I did
> that causes this.

Okay I think I know what I'm doing wrong here.  For some files I'm
changing the outline-regexp to something org mode isn't expecting.  When
I visit a *.txt file I change the outline-regexp to 

    (setq outline-regexp "\\(?:\\*+\\|=+ \\)")

which I find useful for things like editing asciidoc source files.

After that C-c C-v in an org file gives the error reported above.

Attempting to do org-agenda-list with the above outline-regexp puts
Emacs in an infinite loop (at least I never left it long enough to
finish).  Killing it with C-g and restarting org-mode fixes the problem.
I assume org-mode resets the outline-regexp when it starts.

For now I've stopped changing the outline-regexp.

Regards,
Bernt

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

* Re: Re: Problem with org-show-todo-tree v5.02
  2007-07-14  0:58     ` Bernt Hansen
@ 2007-07-14  5:15       ` Carsten Dominik
  2007-07-14 15:31         ` Bernt Hansen
  0 siblings, 1 reply; 6+ messages in thread
From: Carsten Dominik @ 2007-07-14  5:15 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: emacs-orgmode


On Jul 14, 2007, at 2:58, Bernt Hansen wrote:
>
> Okay I think I know what I'm doing wrong here.  For some files I'm
> changing the outline-regexp to something org mode isn't expecting.  
> When
> I visit a *.txt file I change the outline-regexp to
>
>     (setq outline-regexp "\\(?:\\*+\\|=+ \\)")
>
> which I find useful for things like editing asciidoc source files.

You should always set this variable in a buffer-local way:

(set (make-local-variable 'outline-regexp) "\\(?:\\*+\\|=+ \\)")

In fact, I should do this for org-mode, and I am not doing it!
Amazing that this was discovered only now.  Will be fixed in the
next version.

- Carsten

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

* Re: Problem with org-show-todo-tree v5.02
  2007-07-14  5:15       ` Carsten Dominik
@ 2007-07-14 15:31         ` Bernt Hansen
  0 siblings, 0 replies; 6+ messages in thread
From: Bernt Hansen @ 2007-07-14 15:31 UTC (permalink / raw)
  To: emacs-orgmode

Carsten Dominik <dominik@science.uva.nl> writes:

> You should always set this variable in a buffer-local way:
>
> (set (make-local-variable 'outline-regexp) "\\(?:\\*+\\|=+ \\)")

Thanks!  I'll try that.

-Bernt

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

end of thread, other threads:[~2007-07-14 15:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-11 16:37 Problem with org-show-todo-tree v5.02 Bernt Hansen
2007-07-12 12:25 ` Carsten Dominik
2007-07-12 14:09   ` Bernt Hansen
2007-07-14  0:58     ` Bernt Hansen
2007-07-14  5:15       ` Carsten Dominik
2007-07-14 15:31         ` Bernt Hansen

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).