emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Daniel Clemente <n142857@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: orgstruct-mode for Emacs Lisp files
Date: Wed, 15 Oct 2008 13:05:28 +0200	[thread overview]
Message-ID: <A3C6667C-0B77-468A-AEE6-DA05E31BA41B@uva.nl> (raw)
In-Reply-To: <87k5cakz8c.fsf@gmail.com>

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

  reply	other threads:[~2008-10-15 11:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-15  9:02 orgstruct-mode for Emacs Lisp files Daniel Clemente
2008-10-15 11:05 ` Carsten Dominik [this message]
2008-10-16 16:51   ` Daniel Clemente
2008-10-16 19:58     ` Carsten Dominik

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=A3C6667C-0B77-468A-AEE6-DA05E31BA41B@uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=n142857@gmail.com \
    /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).