Hi Daniel,

you should use outline-minor-mode, and then just call org-cycle while that mode is active. The FAQ covers this issue

http://orgmode.org/worg/org-faq.php

under the question 'Can I get the visibility-cycling features in outline-mode and outline-minor-mode?'

- Carsten

On Oct 15, 2008, at 11:02 AM, Daniel Clemente wrote:


This has been addressed many times. Given an .el file with comments like:

; section 1
;; subsection 1
aaa
;;; subsubsection 1
e
;;; subsubsection 2
iiiiiii
;; section 2
....


Then it would be useful to use TAB to cycle the state of those headings. There's outline-mode, but orgstruct-mode is directly usable for org users, and thus easier.

 However, I find that this procedure didn't work on org-mode 6.09:

1. open that file
2. evaluate (setq org-outline-regexp ";+ ")
3. M-x orgstruct-minor-mode


The TAB key still works only on headers matching "\\*+ ", so I think that I'm changing the wrong regexp, or that orgstruct-mode didn't detect the change.

Could you please add a paragraph in the manual, in the section „The Orgstruct minor mode“, that tells about how could you change the outline regexp in case a mode needs it?


I found no documentation for org-outline-regexp (less than 10 results on many search engines!).


 Thanks,

Daniel


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to