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: Mon, 31 May 2021 01:58:27 +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="28471"; 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 Mon May 31 01:59:23 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 1lnVL0-0007FN-KR for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 May 2021 01:59:22 +0200 Original-Received: from localhost ([::1]:50256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnVKz-0001pr-Nj for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 30 May 2021 19:59:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnVKf-0001pi-TJ for bug-gnu-emacs@gnu.org; Sun, 30 May 2021 19:59:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49039) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnVKf-00036F-KM for bug-gnu-emacs@gnu.org; Sun, 30 May 2021 19:59:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lnVKf-0001H4-J7 for bug-gnu-emacs@gnu.org; Sun, 30 May 2021 19:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Christopher Dimech Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 May 2021 23:59:01 +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.16224191174867 (code B ref 48724); Sun, 30 May 2021 23:59:01 +0000 Original-Received: (at 48724) by debbugs.gnu.org; 30 May 2021 23:58:37 +0000 Original-Received: from localhost ([127.0.0.1]:60585 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnVKG-0001GP-Om for submit@debbugs.gnu.org; Sun, 30 May 2021 19:58:37 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:40117) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnVKE-0001GC-Bj for 48724@debbugs.gnu.org; Sun, 30 May 2021 19:58:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1622419107; bh=2ImA1LDGYqc6i4wqs/UEyFLUY6cscIRXL7aSjnbVKF8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=HaIT0QkYVgbm6ZoFH2DGCBaJpVaKimGYLUEe1JME939cU0B5MnzNucQknVZt4BLbh y9KGfuCOsnsH53upbUhODL1SFP6AuFF8PWrCnglvrlb8SlZrUF+HTei5qJC8euHNap tIzkx2cqBIyQBTySHt8LvtT2uItchrvstEebPCIk= 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-bs10.server.lan [172.19.170.178]) (via HTTP); Mon, 31 May 2021 01:58:27 +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:W/7abSVQsnOn2YjLRiibMHjkO4eEwhquWMHGO0SyFHrPKy62D+OvBS+tXuhzRXR372csU hztAvR85r/Dx1DVH48ncR7K/c9rLSEoVXcNjbL3LYfw7GzDUijJwjtqEY0saXoXytMAx/GBmQSAH 0NsYy9txhcBVUTkoMmJYoIm8Vy7AEzTnO9Xw6VI3VtoqxQlGo0cD6rN9pgHcRUIwSemAAQLLSuJI eOsvZOnifxmsVRmRoT05+wv7rTUjLO3IFhevNVsQ9vfZBTG8w7c70T1hiRtmjsFQXSI+OVt0mCnK 38= X-UI-Out-Filterresults: notjunk:1;V03:K0:81Y+4052IeE=:64IBHH6MgMjsYega7r+uO4 DYKc3shUrxExAxa8KAkoys5lBNyxkbNRJOS+GDu2dK8/Vik1xVCHPF52oeK8dsdqJ7LrWuWrD ty7vKDqrGkTBx3th/TPP0yPy2UWzbcOGXILugghe4E51B2scBgYEaEcofaDMxz0C6lXHSPnXh sYaDrY3oV6lMFRwycs5raHWiuxvO7dzmd2bmHxjLU8FuAJ6AkWfX5tDQL1bfEnpTBywrcuJ8y ilo2osVGF2n0X1j1C3rHKxGQx/Sdcs+rr3nJWxYLFbc78mlTjEIIv9NWv6Bb9ZbwEUN/EBi++ wl2FSHFiruF919V2H8AoJJnbR6FAMsyi4eff564Zq435THfmoVL/QmapDRC7HdBfibvachLtC HdagZJ0UV+yHYq/lXDnpGtn1kCsT+nml4LCUtDVbbtEvgLHAh8eWDDrCETT+mO3ZsjrGjiDum rzKmnDO3nSNs5rFhOBWpJt/wZeQLvOk00if/tYGxdcqB/OfEsHcx6mXhBurEajgBRJT3iiPRy d51zam0JwbQn1+5+p3O+qCjovM7Gm/gdzGjf92THipWmy4s8wlLGvuAYOlcrMq/d4KC4YdaLt xmTZkxxTsqsaXZM7luu/puLf1ZFPi78YkZ27y0EM38NPqxtisOs9ngXg7Hd2tvOuOE8s+Slp4 ivPhwNkuSk3xNuhnbWLrq3DFaWmDBOMzNMVlnFZLOHyirS/GvtnBt64sF6zH7Z4jNK9xI7waT cI5N4D03kkEa1xHuBT/arVR6Yd5l725plTHkHumx4S++mUQeZ7+x27FUCDeT5oDfTBqd4bIn 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:207649 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. Quite Right. > > 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. > > 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. There are currently two modes (1) the fixed format fortran (fortran-made) = you describe with "C" character for comments, and (2) the newer free format fo= rtran with "!" character for comments (f90-mode). Could use for fortran-mode starting from three CCC as in elisp CCC Heading CCCC Subheading CCCCC SubSubHeading etc And for f90-mode use the following, starting from three !!! as in elisp !!! for heading level 1 !!!! for subheading level 2 !!!!! for subsubheading level 3