From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathaniel Cunningham Subject: Re: orgstruct: broken global visibility cycling, when in comments Date: Thu, 20 Jun 2013 16:48:42 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f8388cfed70f104df9ce8e0 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Upmil-0002Aw-FK for emacs-orgmode@gnu.org; Thu, 20 Jun 2013 17:48:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Upmii-0003cM-M7 for emacs-orgmode@gnu.org; Thu, 20 Jun 2013 17:48:47 -0400 Received: from mail-la0-x22e.google.com ([2a00:1450:4010:c03::22e]:33436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Upmii-0003bz-Ee for emacs-orgmode@gnu.org; Thu, 20 Jun 2013 17:48:44 -0400 Received: by mail-la0-f46.google.com with SMTP id eg20so6136859lab.5 for ; Thu, 20 Jun 2013 14:48:42 -0700 (PDT) In-Reply-To: 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 --e89a8f8388cfed70f104df9ce8e0 Content-Type: text/plain; charset=ISO-8859-1 Thanks to Christopher Schmidt for solving my problem: On Fri, Jun 14, 2013 at 11:30 PM, Nathaniel Cunningham < nathaniel.cunningham@gmail.com> wrote: > I'm attempting to use orgstruct minor mode in emacs-lisp-mode (org 8.0.3 > in recent Aquamacs and in vanilla Emacs 24.3.1). I find: > - cycling an individual headline using tab key works fine > - global cycling via S-Tab (when on a headline) to more expanded > visibility (e.g. OVERVIEW --> CONTENTS or CONTENTS --> SHOW ALL) works fine > - global cycling via S-Tab (when on a headline) to more limited visibility > fails without error (echo area still reports OVERVIEW or CONTENTS, etc.) > > I have orgstruct-heading-prefix-regexp set to "^;;". > Note that this value for the prefix (actually the version with a space, "^;; ") is suggested by the Org manual for version 8.0.3 Christopher pointed out that "orgstruct-mode implicitly starts the real regexp that is used for headline matching with a ^. Your additional ^ breaks the regexp." I verify that setting orgstruct-heading-prefix-regexp to ";;" (or ";; " with a space) solves the problem. Thank you Christopher! --Nathaniel --e89a8f8388cfed70f104df9ce8e0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks to Christopher Schmidt for solving my problem:
=
On Fri, Jun 14, 2= 013 at 11:30 PM, Nathaniel Cunningham <nathaniel.cunningham@g= mail.com> wrote:
I'm attempting to use orgstruct minor= mode in emacs-lisp-mode (org 8.0.3 in recent Aquamacs and in vanilla Emacs= 24.3.1). =A0I find:
- cycling an individual headline using tab key works fine
- global = cycling via S-Tab (when on a headline) to more expanded visibility (e.g. OV= ERVIEW --> CONTENTS or CONTENTS --> SHOW ALL) works fine
-=A0global cycling via S-Tab (when on a headline) to more limited visi= bility fails without error (echo area still reports OVERVIEW or CONTENTS, e= tc.)

I have orgstruct-heading-prefix-regexp s= et to "^;;".
Note that this value for the pref= ix (actually the version with a space, "^;; ") is suggested by th= e Org manual for version 8.0.3

Christopher p= ointed out that "orgstruct-mode implicitly starts the real regexp that= is used for headline matching with a ^. =A0Your additional ^ breaks the re= gexp."
I verify that setting orgstruct-heading-prefix-regexp to ";;"= ; (or ";; " with a space) solves the problem.

<= /div>
Thank you Christopher!
--Nathaniel


--e89a8f8388cfed70f104df9ce8e0--