From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#48724: Code collapsing and outline headings for elisp Date: Mon, 31 May 2021 01:15:59 +0300 Organization: LINKOV.NET Message-ID: <87a6obzxao.fsf@mail.linkov.net> References: <877djh42jg.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32027"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 48724@debbugs.gnu.org To: Christopher Dimech Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 31 00:39:48 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lnU5z-0008Dh-RV for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 May 2021 00:39:47 +0200 Original-Received: from localhost ([::1]:53496 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnU5y-0004rJ-Ts for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 30 May 2021 18:39:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43300) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnU5H-0003oD-VQ for bug-gnu-emacs@gnu.org; Sun, 30 May 2021 18:39:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49019) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnU5H-0002wy-OH for bug-gnu-emacs@gnu.org; Sun, 30 May 2021 18:39:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lnU5H-0007qh-MJ for bug-gnu-emacs@gnu.org; Sun, 30 May 2021 18:39:03 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 May 2021 22:39:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48724 X-GNU-PR-Package: emacs Original-Received: via spool by 48724-submit@debbugs.gnu.org id=B48724.162241431230102 (code B ref 48724); Sun, 30 May 2021 22:39:03 +0000 Original-Received: (at 48724) by debbugs.gnu.org; 30 May 2021 22:38:32 +0000 Original-Received: from localhost ([127.0.0.1]:60560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnU4m-0007pM-AB for submit@debbugs.gnu.org; Sun, 30 May 2021 18:38:32 -0400 Original-Received: from relay12.mail.gandi.net ([217.70.178.232]:37261) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnU4e-0007oc-4O for 48724@debbugs.gnu.org; Sun, 30 May 2021 18:38:28 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 2054F200005; Sun, 30 May 2021 22:38:16 +0000 (UTC) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:207648 Archived-At: > Serious problem is that the two important variables: `outline-regexp' and > `outline-heading-alist' are not customizable by using "M-x customize-group". > > Additionally both of them should be customizable per mode. Don't you think so? I think that modes should set `outline-regexp' and `outline-heading-alist' according to the constructs of their programming language. Then users don't need to customize these variables. > There has been a discussion today about outline-minor-mode settings for fortran > (both fixed and free form). Have had a go at using "!" and "!!", but "Hide Body" > did not hide the body. > > There could be some default headings for fortran when outline-minor-mode is enabled. > One could follow the current setup for emacs-lisp-mode, for fortran. > > !! for heading level 1 > !!! for subheading level 2 > !!!! for subsubheading level 3 I agree it would be nice to set an appropriate value of `outline-regexp' and `outline-heading-alist' for fortran-mode in lisp/progmodes/fortran.el. But the last time I used Fortran was when Fortran had the "C" character for comments at the first fixed column on a punched card, and now your example uses some new syntax "!" for comments, so sorry, can't help here. This task would be a nice assignment for the group of students.