From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ludvig-faddeev@gmx.com Newsgroups: gmane.emacs.help Subject: outline-minor-mode for fortran Date: Fri, 28 May 2021 20:43:09 +0200 Message-ID: References: <871r9q7m4y.fsf@icterid> 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="30634"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Philip Kaludercic Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 28 20:43:52 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 1lmhSY-0007lm-PE for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 28 May 2021 20:43:50 +0200 Original-Received: from localhost ([::1]:43196 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmhSX-0007HO-RY for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 28 May 2021 14:43:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmhS6-0007HG-7w for help-gnu-emacs@gnu.org; Fri, 28 May 2021 14:43:22 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:60651) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmhS2-0008OS-IY for help-gnu-emacs@gnu.org; Fri, 28 May 2021 14:43:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1622227389; bh=t8MMlsjDHuAtPM+z8k0+NWUBAJxOdRw4cAyP2pFW5cc=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=GUwkL9ce881WMz8qr79jON96lbuLZEVZyKLZeaGJoeQVb4z8936nUg6V9hIXGGsQ2 4qn0mcTZQbfJ1gxA4XCQ8ipWDswLDoHxO2B/O454D/8VwWvZQqp3H07beK7g2kGS1F NHZo+/DsQlVjOXWLJdzDcAiYziNzME1uL7QO01Lw= 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); Fri, 28 May 2021 20:43:09 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <871r9q7m4y.fsf@icterid> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:YFJv7FRa8Ag+CpDEhjsSB1c9KrSX1quOYjziGfg46PO6bM7jrG8HuvDq7eoQHPbv517Yg pcqDbYx/AveSto0atSw8Iz83eF0t8ZkxXENbRb+llPT87nyteKg12270J0x1c1EH+i1ka+4KRYeq 7BMsl8/o/LreFUW29aY7htfBByeZ27LErINqQqpEnfsNb+UzRzLiEOMnb9jXXvawKMfHL40YlhRn mIEbuWRwjaucoMuBO5nUpMioU22i/uPTlKDX61Ib68Ma0HrpH3BhLud/WZ0OjD/fYx2haLFYrXUb Z0= X-UI-Out-Filterresults: notjunk:1;V03:K0:H5IRnrmIF0E=:ouukIM57J5kZar2QgDKoQE fEJLJyAzjkuMTuvEUBiAw888VUGGEICh5LbNaA/wWXbwRJJRrUyvJN0K0My/9KRNQUwHRnenG wY33ZtmdxHMyKgj75QDt2EFNvWGnDJzVbuI0JqWFyWQF73yVfULu3Q8MFlCMRHsyEx1MvAj3Y BmvoddBCe7L6xbemtWJg76I3pNGCofnLYdS6BNKs638e2Ki8w+e3rPfX6Ok1eE8BZ9U2IjHsq 1DSza6fDW2xCLSu7JYlvyWQDiI+oh87bJUAZ/KixsdfQ5PbC2bWyeZ0e0Uf1xvuyWLlSnZgG+ GEMg5MYn7+sLcfmcOaZR35TTas9jqi6mIlwcl/MbRu3G+H/HnDz8lpwZQuOiJBXAyLbCLEQas /OmvxDGlo5/cbNjOQViI/V6DmKa5pH7O4lN5yQUCZ5wkoKz0paThLlv8+YGXc3KaK+sQqao1p ossMUPsjoRj0gXrjqgrvEPNXfCE8e4TxM0+CVowjX+SiaxXa0nWraOzv9uQRMBOvPr/4VJeME XQ28Ih3CuoUwX2dACMscYDPocib5An4kihWwfUbiRGD1hry6I4P7fuxIks7DT3i+PNfIrK744 eGnBT2TTR61SaxNR7JaiYaT3WTU7FPEik6yrk/ohTkewWCCfeXZ3dS34PpTvQuyF/Jxs5IhZe 5d5vw1cEOVLih1G8s0IzquzINYrY5uhMDbtH+5Miya0YGat9RlpB9swzKa2MeegAgtycFW4I4 +SwfBhAZOWW5tiQfHx6OwI8lL/zd9DZUM9MjuafM97ApUjVUu3khXiVzC918ZBpWO0B034sn Received-SPF: pass client-ip=212.227.17.22; envelope-from=ludvig-faddeev@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:130277 Archived-At: > Sent: Saturday, May 29, 2021 at 6:23 AM > From: "Philip Kaludercic" > To: ludvig-faddeev@gmx.com > Cc: "Help Gnu Emacs" > Subject: Re: outline-minor-mode for fortran > > ludvig-faddeev@gmx.com writes: > > > Can one use outline-minor-mode for fortran and what is used to define > > headings? > > I have never really used fortran-mode, but would this work > > (add-hook 'fortran-mode-hook > (lambda () > (setq-local outline-regexp fortran-start-prog-re))) > > Basically every line that starts with "program", "subroutine, etc. is > seen as a outline-header. Have had a go at applying your suggestion with both "fortran" and "f90" as follows (add-hook 'fortran-mode-hook (lambda () (setq-local outline-regexp fortran-start-prog-re))) (add-hook 'f90-mode-hook (lambda () (setq-local outline-regexp f90-start-prog-re))) Then hit "Hide Body" and the headings are not being hidden yet. > -- > Philip K. >