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.help Subject: Fortran Topics (outline-minor-mode, require, fixed format) Date: Sat, 29 May 2021 23:26:06 +0200 Message-ID: References: <878s3xpab1.fsf@zoho.eu> 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="8574"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 29 23:27:22 2021 Return-path: Envelope-to: geh-help-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 1ln6UM-0001zm-25 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 29 May 2021 23:27:22 +0200 Original-Received: from localhost ([::1]:36078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ln6UK-0008D9-9X for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 29 May 2021 17:27:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ln6Tl-0008Cz-5j for help-gnu-emacs@gnu.org; Sat, 29 May 2021 17:26:46 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:40715) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ln6Tg-0006St-Vm for help-gnu-emacs@gnu.org; Sat, 29 May 2021 17:26:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1622323566; bh=aI3pgW+sII38qxhJTbUkNNHTwMwODKaRFj2ubq2r11k=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=N+SrsrqQ50a2vO8o5LvQrXt4dJ1N1laL5d6ougkiOg1/iFpCBWbQmbtlNWGEnbH5u BH6snTRSgfiGnT99fEtBgoc/ZkSlHDW6J8r2VUhDpP5XZ3tDTuBzbwGpvPaE2rPw/J F1WEM/cn/3Igz5Uk36Wy5L2ID5F0/d38TwTeJAAQ= 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-bs16.server.lan [172.19.170.184]) (via HTTP); Sat, 29 May 2021 23:26:06 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:Ta8sOHRvL+vLaAjOQJUuh+yX+RtvBOuCt+92mbc+E/aJVb8h0aIw6FA04WNXlqdqwR7zp BRcyi59Bd6wZC274t0bieusuF334ufYKf3Oy2nxq8ynbq0VhurG0oYtNTlkq4fo/nMPzaMbabu/n vsX0MukGKA3HmVvdCaJ5ZW29C6oL/4jQjewc4L7BiYGLtL3apRFJPNP4vYSHj271dScXaFwBslnM CO4rG155yWRlRrtaWbxoa7ABg9gMP6Xvdakiofy7z4/lDD3pJlHMFATpsUrz233ORrzD6Hsx6jPz DQ= X-UI-Out-Filterresults: notjunk:1;V03:K0:J2Jy+AxIpGQ=:0Nc49+q3luINpHBynerelJ 7oYGRHRNQferIa+eBBkOS8m5QvijrjtSDyiMz4Byt0UhTf0OkNFZopkNbHvFWeaXdeP9vpXZw OvsoJFaptTapOZCImdHOJqyRFepJqWhXXnCJFMSn+pVlcBOW0x/3aFRunnsmKfgOxjhewwlb9 kjVC7SNU5qciahFp7kc52kts4h5Jhl664qRS14DPtAtMg6bHrlcjYf+KbuACk7C30eETv+0ZI kkaGDsRdp6vJMDLLvUViy5nrQAkEiZdhZWtWLI5w07M/MRQZw6R4co4OY/TpU6ALG/QcC43/X tWaASiqz7mqunMXmSJjG6ps53BxIDM9JBRlgFbO8nlMAwNaeq0WZj1LMkz5b9OnvmI9NywCJl AxIb36rHM+8NBtxCdNgpmCu85iy4jyAL37GcP41Ep2o1Jt3M/DEneGPldxlE3+Tb8bZhUL2lm DKj46lKLt/2IOlHQ5NrUkGsSo9RaIfCORo+GhqYewmvFSb+MUzTWp6Usn7D8+PmcXjwpYqW35 feC1AgiehzS30uzxOGqBLNbaQI94AgV7zkQKqQz881QehK69idwPpClDWGllGzKznfrf+qrLO asmXLYwExgQVYzD/D3zVSsLkp8POReEGpXkFw8mrtP5HKon9YvmDyAAutXlludFCEK8I4lGsW 1nE+pvijSLivxHr6jfXLS0sw+2ev7OKDtfztZYal0lv/lz+OX9Pq/eZnCNtctKwWn6J6k0yjs FXHolseXHfDEokonKjghiZmftty8J47IqQD17j7IRhmXNHtkIf3BAC78YqvSreFUr61m+Vbu Received-SPF: pass client-ip=212.227.17.22; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:130303 Archived-At: > Sent: Sunday, May 30, 2021 at 8:48 AM > From: "Jean Louis" > To: help-gnu-emacs@gnu=2Eorg > Subject: Re: Fortran Topics (outline-minor-mode, require, fixed format) > > * Emanuel Berg via Users list for the GNU Emacs text editor [2021-05-29 23:16]: > > > outline-minor-mode oriented > > > > > > 1=2E How to include headings and subheadings for fortran > > > (fixed and free format) > > > 2=2E Code structure hiding (subroutine, function) > > > 3=2E Setting up new heading lists (outline-regexp, > > > outline-heading-alist) > >=20 > > OK, don't know/understand what 1 and 3 means, again did you > > get it to work somewhere else? >=20 > In Fortran the comment is ! and how somebody wish to set headings is > really personal choice=2E >=20 > I use just one heading in Emacs Lisp: >=20 > ;;;; =E2=86=9D MY EMACS LISP FUNCTIONS In emacs-lisp-mode, outline-minor-mode uses ;; as level 1 heading,=20 ;;; as level 2 heading, ;;;; as level 3 heading etc=2E For fortran-mode and f90 mode, outline-minor-mode could be set the same wa= y=2E !! Heading Level 1 !!! Subheading Level 2 !!!! SubSubHeading Level 3 Have tried doing "Hide Body" for comments starting with "!" (free format) = or=20 "C" (fixed form)=2E But does not look that "Hide Body" does anything=2E Then users can change them if they want something else or additional setti= ngs=2E For emacs-lisp-mode, outline-minor-mode can hide strucutres starting with = "("=2E For fortran, there can be hiding for lines starting with "subroutine" and = "function" when outline-minor-mode in enabled=2E Could send a bug report for a feature request=2E What do you think Jean? >=20 > And I like using Unicode that way=2E >=20 > ;;;; =E2=A7=AD=E2=A7=AD=E2=A7=AD=E2=A7=AD=E2=A7=AD=E2=A7=AD=E2=A7=AD=E2= =A7=AD=E2=A7=AD Or maybe like this >=20 > All that can work=2E Is it visual enough? That is what matters=2E >=20 > Or how about: >=20 > ;=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2=AE= =9E=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2=AE=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AE=9E=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2= =AE=9E=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2=AE= =9E=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2=AE=9E=E2=AE=9E >=20 > I like those=2E >=20 > Headings and subheadings in outline mode don't exist in Fortran as a > language=2E Outline Minor Mode is universal it is up to user to decide > what is heading and what not=2E >=20 > All of the above depends of settings, right? >=20 > > > Remove the need to call "(require 'f90)" and "(require > > > 'fortran)" in conformity with other languages (e=2Eg=2E as in > > > emacs-lisp-mode, texinfo-mode) > >=20 > > Well, easy enough to do and conformity is very difficult > > (impossible) to ever achieve anyway=2E >=20 > Reference here: > https://www=2Eemacswiki=2Eorg/emacs/FortranMode >=20 > (add-to-list 'auto-mode-alist '("\\=2Ef\\'" =2E f90-mode)) They also can do that with the rest (add-to-list 'auto-mode-alist '("\\=2Ef95\\'" =2E f90-mode)) (add-to-list 'auto-mode-alist '("\\=2Ef03\\'" =2E f90-mode)) (add-to-list 'auto-mode-alist '("\\=2Ef08\\'" =2E f90-mode)) Regards Christopher >=20 > --=20 > Jean >=20 > Take action in Free Software Foundation campaigns: > https://www=2Efsf=2Eorg/campaigns >=20 > Sign an open letter in support of Richard M=2E Stallman > https://stallmansupport=2Eorg/ >=20 >