From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Clemente Subject: orgstruct-mode for Emacs Lisp files Date: Wed, 15 Oct 2008 11:02:27 +0200 Message-ID: <87k5cakz8c.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kq2HA-0007br-A8 for emacs-orgmode@gnu.org; Wed, 15 Oct 2008 05:02:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kq2H7-0007av-BK for emacs-orgmode@gnu.org; Wed, 15 Oct 2008 05:02:38 -0400 Received: from [199.232.76.173] (port=47208 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kq2H6-0007ag-PU for emacs-orgmode@gnu.org; Wed, 15 Oct 2008 05:02:37 -0400 Received: from nf-out-0910.google.com ([64.233.182.185]:10858) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kq2H6-0000rh-1G for emacs-orgmode@gnu.org; Wed, 15 Oct 2008 05:02:36 -0400 Received: by nf-out-0910.google.com with SMTP id c7so1273898nfi.26 for ; Wed, 15 Oct 2008 02:02:34 -0700 (PDT) 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: emacs-orgmode@gnu.org 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. =20 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 ch= ange. Could you please add a paragraph in the manual, in the section =E2=80=9ET= he Orgstruct minor mode=E2=80=9C, 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