From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Problem with org-show-todo-tree v5.02 Date: Fri, 13 Jul 2007 20:58:48 -0400 Message-ID: <873azrer7b.fsf@gollum.intra.norang.ca> References: <871wfe3nh5.fsf@gollum.intra.norang.ca> <42955bb027794afb9fe2a5cfb883104a@gmail.com> <87vecp1zp4.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I9Vyf-0003Rc-CS for emacs-orgmode@gnu.org; Fri, 13 Jul 2007 20:59:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I9Vyd-0003Pv-I5 for emacs-orgmode@gnu.org; Fri, 13 Jul 2007 20:59:16 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I9Vyd-0003Ps-Bq for emacs-orgmode@gnu.org; Fri, 13 Jul 2007 20:59:15 -0400 Received: from main.gmane.org ([80.91.229.2] 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 1I9Vyc-0001Ol-Kq for emacs-orgmode@gnu.org; Fri, 13 Jul 2007 20:59:14 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1I9VyV-0002Wd-Dz for emacs-orgmode@gnu.org; Sat, 14 Jul 2007 02:59:07 +0200 Received: from cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com ([74.119.210.211]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Jul 2007 02:59:07 +0200 Received: from bernt by cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Jul 2007 02:59:07 +0200 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 Bernt Hansen writes: > Carsten Dominik 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