From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: [RFC] Remove Org Struct mode Date: Sun, 27 Aug 2017 15:07:42 +0200 Message-ID: References: <87mv6ul4u6.fsf@nicolasgoaziou.fr> <87wp5uy30w.fsf@gmx.us> <87lgmajz7v.fsf@alphapapa.net> <87bmn6gvue.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlxI2-0003yf-2c for emacs-orgmode@gnu.org; Sun, 27 Aug 2017 09:07:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlxI1-0007fC-1Y for emacs-orgmode@gnu.org; Sun, 27 Aug 2017 09:07:46 -0400 Received: from mail-qk0-x231.google.com ([2607:f8b0:400d:c09::231]:37383) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dlxI0-0007er-SI for emacs-orgmode@gnu.org; Sun, 27 Aug 2017 09:07:44 -0400 Received: by mail-qk0-x231.google.com with SMTP id k126so15854954qkb.4 for ; Sun, 27 Aug 2017 06:07:43 -0700 (PDT) In-Reply-To: <87bmn6gvue.fsf@alphapapa.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Adam Porter Cc: Org Mode Hi Adam On Wed, Aug 23, 2017 at 5:14 PM, Adam Porter wrote: > ;; Regular comment > ;;; Heading level 1 > ;;;; Heading level 2 > ... > > Then any comment that starts with 3 or more semicolons is indented to > the left edge and becomes a collapsible heading, regardless of the > indentation of the code under it. I assume in the above sentence you meant that a comment to be a heading has not to be indented. That is at least what I observed, and was able to change: In the setup code you provided (to be used with plain Outline minor mode without outshine) with (setq outline-regexp "\\(;;[;]\\{1,8\\} \\|\\((defun\\)\\)") when " *" is added at the beginning to respect indentation (setq outline-regexp " *\\(;;[;]\\{1,8\\} \\|\\((defun\\)\\)") the indented comments are also considered a heading. This makes me believe that in Outline major mode and maybe partly also in Org mode even this * Heading level 1 * Heading level 2 could be made to work by tweaking outline-regexp and outline-level. Michael