emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Brian van den Broek <broek@cc.umanitoba.ca>
To: emacs-orgmode@gnu.org
Subject: possible bug with headline visibility cycling and whitespace
Date: Wed, 15 Aug 2007 12:45:45 -0400	[thread overview]
Message-ID: <46C32DB9.2030701@cc.umanitoba.ca> (raw)

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:

<Start of file>

* Heading Level One

** Heading Level Two

*** TODO Try to unfold this tree


* Heading Level One again


<End of File>

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 <TAB> 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 <TAB> 
cycle. Observe that nothing happens. What was expected was cycling 
through the various displays of the subtree. <TAB> cycling on the top 
of the file still works as expected, as do S-<TAB> and C-u <TAB>.

Edit the file so as to remove all whitespace other than newlines from 
the various headlines that have them. Now, <TAB> cycling works as 
expected.

So, it appears that headlines followed only by whitespace where that 
whitespace includes more than newlines breaks <TAB> 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

             reply	other threads:[~2007-08-15 16:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-15 16:45 Brian van den Broek [this message]
2007-08-15 21:56 ` agenda view "r" efreshing: how to stick with custom settings Rainer Stengele
2007-08-16 11:25   ` Carsten Dominik
2007-08-16 11:24 ` possible bug with headline visibility cycling and whitespace Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46C32DB9.2030701@cc.umanitoba.ca \
    --to=broek@cc.umanitoba.ca \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).