emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nathaniel Cunningham <nathaniel.cunningham@gmail.com>
To: emacs-orgmode@gnu.org
Subject: orgstruct: broken global visibility cycling, when in comments
Date: Fri, 14 Jun 2013 23:30:10 -0500	[thread overview]
Message-ID: <CAAGwS85RLyzV9Qdz8HvPLxiBKj=0i4K8Nqxwg3xdkm-OWvJVPg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1113 bytes --]

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 "^;;".
Example buffer contents that fail global cycling to narrower scope:

;; Testcase for orgstruct-mode in emacs-lisp-mode
;;* top level headline 1
;;** 2nd level headline A
(setq var2 "value2")
;;** 2nd level headline B
(setq var3 "value3")
;;** 2nd level headline C
(setq var4 "value4")
;;* top level headline 2
(setq var5 "value5")

I find no trouble with global cycling if I remove the ";;" comment
characters in all headlines and set orgstruct-heading-prefix-regexp to nil.

I suspect this is a bug; but perhaps I'm doing something wrong?  Thanks for
any help.

Cheers,
Nathaniel

[-- Attachment #2: Type: text/html, Size: 1554 bytes --]

             reply	other threads:[~2013-06-15  4:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-15  4:30 Nathaniel Cunningham [this message]
2013-06-15  8:22 ` orgstruct: broken global visibility cycling, when in comments Thorsten Jolitz
2013-06-15 19:55 ` Christopher Schmidt
2013-06-20 21:48 ` Nathaniel Cunningham
2013-06-27 14:25   ` 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='CAAGwS85RLyzV9Qdz8HvPLxiBKj=0i4K8Nqxwg3xdkm-OWvJVPg@mail.gmail.com' \
    --to=nathaniel.cunningham@gmail.com \
    --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).