From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.bugs Subject: bug#48724: Code collapsing and outline headings for elisp Date: Tue, 1 Jun 2021 13:24:42 +0200 Message-ID: References: <877djh42jg.fsf@mail.linkov.net> <87a6obzxao.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27090"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48724@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 01 13:25:24 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 1lo2WS-0006rG-9V for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Jun 2021 13:25:24 +0200 Original-Received: from localhost ([::1]:38232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lo2WQ-0007rw-UJ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Jun 2021 07:25:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45584) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lo2W6-0007qO-Hw for bug-gnu-emacs@gnu.org; Tue, 01 Jun 2021 07:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52535) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lo2W6-0008Fb-AK for bug-gnu-emacs@gnu.org; Tue, 01 Jun 2021 07:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lo2W6-0002ej-5e for bug-gnu-emacs@gnu.org; Tue, 01 Jun 2021 07:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Christopher Dimech Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Jun 2021 11:25:02 +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.162254669110190 (code B ref 48724); Tue, 01 Jun 2021 11:25:02 +0000 Original-Received: (at 48724) by debbugs.gnu.org; 1 Jun 2021 11:24:51 +0000 Original-Received: from localhost ([127.0.0.1]:35848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lo2Vv-0002eI-DY for submit@debbugs.gnu.org; Tue, 01 Jun 2021 07:24:51 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:38807) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lo2Vt-0002e4-1X for 48724@debbugs.gnu.org; Tue, 01 Jun 2021 07:24:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1622546682; bh=PITN4pSlXBeTSV6TldCwZ9rbOkZ+i5lfrTL3q40n3Xo=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=H4/FRPnLcG1b+ckpJkyLy3KV91epPlVdcTBNbKTMTWLuTVtV1u+4RegF5ylZZQLxa cReVyaYNUg7QbSPAluYtmsU2yooo5c530HxbbnwKQMbTkbyyvk6ED4OCiOhFGM1VPg MZVsrb4FOXLyuzsfIaanl0eHf34Bri+DbAge2O0w= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs01.server.lan [172.19.170.58]) (via HTTP); Tue, 1 Jun 2021 13:24:42 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <87a6obzxao.fsf@mail.linkov.net> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:6u0U7yzo7A2z6VEXcBZdLtUIB6f3wSR1IWzRsmF9JRXySiPWEh59jPuNsnI0uAAJg3+qx lTrpLLWXyiUakoqrFzFX2auFIAKZL2YUrXErhZJASpYAAFP2bAqs1JYxjDgpfuCIZejYwKEKjs8r EC7J8+FYaCY9HKTXHhE1Mt76ioA4xI+QWtnEI5QlWPu2v6YcWPQyJkJ1L5Yg1G8CF6+9ZSwoLEPV Q6Vyh56yiNJeWhcAVoG26FclQkC8NmQAUmNd9XvQZxdLqBvDk15eHUcH2ugRCaEfcQOYJ7jvi81e sk= X-UI-Out-Filterresults: notjunk:1;V03:K0:KDFsCKMEyyw=:EzC41cJBF/r00Rr40Mvd4t UjxYfQERO30rqI45QU/ecDgaPLQIsanKrqFb3YqASPzI67kBCTsabriy5m30ZiRc0UEr9G6H8 P9r1woYcHaHy1VXG76GEdr5QGp8E/queHCectHq+MCtiAYqgRbGfhaeUMkuzFsc1VhqmhKU7N T4Y2dUcPv3XyPB7B9ffDklCulNXSFIoXLlpezxenaWt0iMowINoHBnO+m6iNKFM2Tt1BvFDZE gqz0OvoVNALNIFEmiVpVUZ8ocsKCUD+6NZ/yi0ad7ZbC/ZB82GF9IaGLeadwP8mfF6OgPB0hL 7HGkIzYe+e4ImlD8I6TmgfynQxlX/4Ce4ajrBffGs/WVIbHziOGjhDPdRW2WbyH/ayVxFQ3XU xX377i5pmb0wX9xS/ye/RV1dBmUUYa0lUiEyTgZ0PO6h0hBaOQ75m72dso0RuY19fAB/PWyTB DcWj82kcdcq7sCniQTbCyJB+OhZpNiMwLIb3zRcZPB2GjXEMeRnvP3WebPm1lxBf2MoRmEGOY r9IRyceU/qSg8pWEFXPLeQeNvA3vThRSZiwwSnBrM39Qxe3cSCnnf+pxEO3X3rsyIHedWZ1Y1 Qv4/si8hvEChiw9tvuuYSIlcHg84SFkWprihObHgFLL0znywY+IAtHyihTnJ/LCH6c+2SwE2u thRVI7LzCOjLsJk4Nu/wzP7Jm0yekI+SDOf9hhwOG856W/5UrkepSQZm06RxnwzQ1JrkAAm4O 2ky1O0cV1qYQjVfz2bd3ItReerta9lgqfCNI3rbfpbCLr7u3qf0chTUSCbGMEZ78EVnYmaGY 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:207767 Archived-At: > Sent: Monday, May 31, 2021 at 10:15 AM > From: "Juri Linkov" > To: "Christopher Dimech" > Cc: 48724@debbugs.gnu.org > Subject: Re: bug#48724: Code collapsing and outline headings for elisp > > > Serious problem is that the two important variables: `outline-regexp' = and > > `outline-heading-alist' are not customizable by using "M-x customize-g= roup". > > > > 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-alis= t' > 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 fo= r 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-mo= de 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.e= l. I suggest that emacs-lisp-mode does code collapse (show/hide) by default. Then outline-minor-mode does additional headings in the form ;;; Heading 1 ;;;; SubHeading ;;;;; SubSubHeading ;;; Heading 2 outline-minor-mode would then be made to collapse sections of code between headlines. This means that a headline hide could hide a number of variable and functi= on definitions that belong together. > 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. Which major modes could be done straight away?