From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: orgstruct-mode for Emacs Lisp files Date: Wed, 15 Oct 2008 13:05:28 +0200 Message-ID: References: <87k5cakz8c.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kq4C6-0000Wx-Ov for emacs-orgmode@gnu.org; Wed, 15 Oct 2008 07:05:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kq4C6-0000We-2M for emacs-orgmode@gnu.org; Wed, 15 Oct 2008 07:05:34 -0400 Received: from [199.232.76.173] (port=33802 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kq4C5-0000WZ-Ve for emacs-orgmode@gnu.org; Wed, 15 Oct 2008 07:05:34 -0400 Received: from ug-out-1314.google.com ([66.249.92.170]:14727) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kq4C5-0007tF-By for emacs-orgmode@gnu.org; Wed, 15 Oct 2008 07:05:33 -0400 Received: by ug-out-1314.google.com with SMTP id z36so1319070uge.17 for ; Wed, 15 Oct 2008 04:05:32 -0700 (PDT) In-Reply-To: <87k5cakz8c.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Daniel Clemente Cc: emacs-orgmode@gnu.org Hi Daniel, you should use outline-minor-mode, and then just call org-cycle while =20= 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 =20 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 =20= > 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 =20 > headings. There's outline-mode, but orgstruct-mode is directly =20 > 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 =20 > think that I'm changing the wrong regexp, or that orgstruct-mode =20 > didn't detect the change. > > Could you please add a paragraph in the manual, in the section =84The = =20 > Orgstruct minor mode=93, that tells about how could you change the =20 > outline regexp in case a mode needs it? > > > I found no documentation for org-outline-regexp (less than 10 =20 > 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