* orgstruct: broken global visibility cycling, when in comments
@ 2013-06-15 4:30 Nathaniel Cunningham
2013-06-15 8:22 ` Thorsten Jolitz
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Nathaniel Cunningham @ 2013-06-15 4:30 UTC (permalink / raw)
To: emacs-orgmode
[-- 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 --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: orgstruct: broken global visibility cycling, when in comments
2013-06-15 4:30 orgstruct: broken global visibility cycling, when in comments Nathaniel Cunningham
@ 2013-06-15 8:22 ` Thorsten Jolitz
2013-06-15 19:55 ` Christopher Schmidt
2013-06-20 21:48 ` Nathaniel Cunningham
2 siblings, 0 replies; 5+ messages in thread
From: Thorsten Jolitz @ 2013-06-15 8:22 UTC (permalink / raw)
To: emacs-orgmode
Nathaniel Cunningham <nathaniel.cunningham@gmail.com> writes:
> I have orgstruct-heading-prefix-regexp set to "^;;".
does it work with "^;;[*]+ " ?
--
cheers,
Thorsten
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: orgstruct: broken global visibility cycling, when in comments
2013-06-15 4:30 orgstruct: broken global visibility cycling, when in comments Nathaniel Cunningham
2013-06-15 8:22 ` Thorsten Jolitz
@ 2013-06-15 19:55 ` Christopher Schmidt
2013-06-20 21:48 ` Nathaniel Cunningham
2 siblings, 0 replies; 5+ messages in thread
From: Christopher Schmidt @ 2013-06-15 19:55 UTC (permalink / raw)
To: emacs-orgmode
Nathaniel Cunningham <nathaniel.cunningham@gmail.com> writes:
> I have orgstruct-heading-prefix-regexp set to "^;;".
Does setting orgstruct-heading-prefix-regexp to ";;" make a difference?
Christopher
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: orgstruct: broken global visibility cycling, when in comments
2013-06-15 4:30 orgstruct: broken global visibility cycling, when in comments Nathaniel Cunningham
2013-06-15 8:22 ` Thorsten Jolitz
2013-06-15 19:55 ` Christopher Schmidt
@ 2013-06-20 21:48 ` Nathaniel Cunningham
2013-06-27 14:25 ` Bastien
2 siblings, 1 reply; 5+ messages in thread
From: Nathaniel Cunningham @ 2013-06-20 21:48 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1138 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 1788 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: orgstruct: broken global visibility cycling, when in comments
2013-06-20 21:48 ` Nathaniel Cunningham
@ 2013-06-27 14:25 ` Bastien
0 siblings, 0 replies; 5+ messages in thread
From: Bastien @ 2013-06-27 14:25 UTC (permalink / raw)
To: Nathaniel Cunningham; +Cc: emacs-orgmode
Hi Nathaniel,
Nathaniel Cunningham <nathaniel.cunningham@gmail.com> writes:
> Note that this value for the prefix (actually the version with a
> space, "^;; ") is suggested by the Org manual for version 8.0.3
I fixed the manual. Thanks for reporting this!
--
Bastien
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-06-27 15:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-15 4:30 orgstruct: broken global visibility cycling, when in comments Nathaniel Cunningham
2013-06-15 8:22 ` Thorsten Jolitz
2013-06-15 19:55 ` Christopher Schmidt
2013-06-20 21:48 ` Nathaniel Cunningham
2013-06-27 14:25 ` Bastien
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).