From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian van den Broek Subject: possible bug with headline visibility cycling and whitespace Date: Wed, 15 Aug 2007 12:45:45 -0400 Message-ID: <46C32DB9.2030701@cc.umanitoba.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ILM0Z-0000qN-0f for emacs-orgmode@gnu.org; Wed, 15 Aug 2007 12:46:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ILM0O-0000dd-FQ for emacs-orgmode@gnu.org; Wed, 15 Aug 2007 12:46:00 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILM0M-0000bb-EB for emacs-orgmode@gnu.org; Wed, 15 Aug 2007 12:45:58 -0400 Received: from electra.cc.umanitoba.ca ([130.179.16.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ILM0K-0008Hm-So for emacs-orgmode@gnu.org; Wed, 15 Aug 2007 12:45:57 -0400 Received: from [192.168.1.116] (bas5-montreal02-1167963410.dsl.bell.ca [69.157.181.18]) (authenticated bits=0) by electra.cc.umanitoba.ca (8.13.0/8.13.0) with ESMTP id l7FGjjZ9026747 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Wed, 15 Aug 2007 11:45:51 -0500 (CDT) 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 Hi all, I'm still new enough to org-mode that the problem might be with my understanding, rather than the code. But, I have a situation where org-mode doesn't behave as I expect. To reproduce my problem, create the following org-mode file: * Heading Level One ** Heading Level Two *** TODO Try to unfold this tree * Heading Level One again Everything between the start and end of file marks is needed, including the whitespace included on the lines after the 2nd- and 3rd-level headings. (Note that this is more than just the newline characters; there are space characters on those lines as well.) Do not include the start and end of file marks. Now, visit this org-mode file; it displays a blank line, the first three headings (with ellipsis), a blank line, and the final heading, as expected. Put the cursor on the first line, and cycle so that only the two top-level headings are displayed. So far, so good. Now, put the cursor on the first top-level heading. Attempt to cycle. Observe that nothing happens. What was expected was cycling through the various displays of the subtree. cycling on the top of the file still works as expected, as do S- and C-u . Edit the file so as to remove all whitespace other than newlines from the various headlines that have them. Now, cycling works as expected. So, it appears that headlines followed only by whitespace where that whitespace includes more than newlines breaks cycling. This feels like a bug to me, but again, it might be that I misunderstand how org-mode is intended to work. I am using GNU Emacs 22.0.91.1 on ubuntu 7.04 and have org-mode 5.04 (the same behaviour was manifest in 5.03). I have a number of org-mode tweaks in my .emacs, but nothing that I can recognize as related. Thanks and best, Brian vdB