From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: Visibility cycling bugs when an org file ends with a plain list Date: Mon, 1 Apr 2013 17:28:43 +0800 Message-ID: Reply-To: jamshark70@dewdrop-world.net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMb7F-0001Vg-Bo for Emacs-orgmode@gnu.org; Mon, 01 Apr 2013 05:33:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UMb7D-0000Kk-0I for Emacs-orgmode@gnu.org; Mon, 01 Apr 2013 05:33:25 -0400 Received: from mail-ob0-x234.google.com ([2607:f8b0:4003:c01::234]:63578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMb2i-0007Ip-PV for Emacs-orgmode@gnu.org; Mon, 01 Apr 2013 05:28:44 -0400 Received: by mail-ob0-f180.google.com with SMTP id wo10so1694215obc.39 for ; Mon, 01 Apr 2013 02:28:43 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Emacs-orgmode@gnu.org" 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