emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: James Harkins <jamshark70@gmail.com>
To: "Emacs-orgmode@gnu.org" <Emacs-orgmode@gnu.org>
Subject: Visibility cycling bugs when an org file ends with a plain list
Date: Mon, 1 Apr 2013 17:28:43 +0800	[thread overview]
Message-ID: <CAFniQ7Xt4yHqgYP0XHHrrFhVBqgtAORBXneH7-k0txOpp=CDJw@mail.gmail.com> (raw)

Hi,

I don't remember if this was reported or not. I frequently get the
following message in the mini-buffer, after trying to expand the last
top-level node in a file. The behavior seems to depend on the last
node containing a plain list.

byte-code: Invalid search bound (wrong side of point)

This issue occurs if org-cycle-include-plain-lists is set to
'integrate'. If I change it back to the default 't', then I get a
different incorrect behavior.

Example (with org-cycle-include-plain-lists = integrate):

~~ Contents
* I
** A
* II
** B
   - Plain list
~~

Hit shift-tab to collapse everything:

~~ Visible contents
* I...
* II...
~~

Now put the insertion point anywhere on "* II" and hit tab to expand
the sub tree. Here's where I get that message.

The normal behavior of TAB visibility cycling is:

TAB once: Expand to show the node's immediate children, but the
children are collapsed.
TAB again: Expand everything underneath the current node.
TAB again: Collapse, to show only the current node.

When I get the message, I only get #1 and #3 behaviors. I can't hit
TAB twice on the heading to see everything underneath.

Now, if org-cycle-include-plain-lists = t, hitting TAB twice does
expand the plain list, but unfortunately it will not display the last
character:

~~ Result of TABx2 with the point on "* II"
* I...
* II
** B
   - Plain lis...
~~

I haven't found a keystroke that will make "t" of "list" reappear. "t"
is actually still there (copy and paste will demonstrate that), but
the visibility code seems to think that something at the end is
supposed to be hidden, even if just one character.

Org-mode version 8.0-pre (release_8.0-pre-215-g8ccbc7 @
/home/dlm/share/org-mode.git/lisp/)

Thanks,
hjh

             reply	other threads:[~2013-04-01  9:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-01  9:28 James Harkins [this message]
2013-04-03 10:44 ` Visibility cycling bugs when an org file ends with a plain list Bastien

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='CAFniQ7Xt4yHqgYP0XHHrrFhVBqgtAORBXneH7-k0txOpp=CDJw@mail.gmail.com' \
    --to=jamshark70@gmail.com \
    --cc=Emacs-orgmode@gnu.org \
    --cc=jamshark70@dewdrop-world.net \
    /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).