From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#73218: [PATCH] Fix Fortran indent below do_not_a_loop=42 Date: Sat, 14 Sep 2024 17:20:01 +0300 Message-ID: <86mskafhbi.fsf@gnu.org> References: <87o74semoz.fsf@kenmankoff.com> <86y13wjcyi.fsf@gnu.org> <877cbfeexe.fsf@kenmankoff.com> <864j6ih4ff.fsf@gnu.org> <874j6iba4h.fsf@kenmankoff.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2686"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73218-done@debbugs.gnu.org To: Ken Mankoff Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 14 16:21:01 2024 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 1spTe0-0000Vr-OO for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Sep 2024 16:21:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1spTdt-0000hJ-Qz; Sat, 14 Sep 2024 10:20:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1spTds-0000gm-9v for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2024 10:20:52 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1spTds-0002Yo-1H for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2024 10:20:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=+eHK7lc0Mbebj4fkFXo3SrT9bXFlg3ESe7MaTMHFSU0=; b=AveVJtSIa+FGX9saksiCmz1R2xL/6PDvR2urkjxqeeSNHoxZKe3uqUuKdoGptXNU+LV+4shbiGvlQOFjBY7qQqm5J/nZIz1UqJ5PUO3wgmZhpyRACPuI4VJyECvUr/3nqiviOjGsHClHkT8U+rre+o/8PtSQxNajIAtgH/jFPiu2LJoB3oqVOHI8zM6xrpdod7LJ/a+37KVRuNOnwKWfoHFArbqTgYeDtQSrqDnFdl1R9VDe+5oeqdn0mJIgoN/N/28BAc3Fdr1fkQfmChIlacAPCkAsl9XC+3ZNTYkXrhl86S6Ft0FgTSgd6tWNTy6Bt0lBYn5dA8ZYUsMLOdlPDw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1spTe2-0001TY-Iq for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2024 10:21:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Sep 2024 14:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 73218 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Mail-Followup-To: 73218@debbugs.gnu.org, eliz@gnu.org, km@kenmankoff.com Original-Received: via spool by 73218-done@debbugs.gnu.org id=D73218.17263236235598 (code D ref 73218); Sat, 14 Sep 2024 14:21:02 +0000 Original-Received: (at 73218-done) by debbugs.gnu.org; 14 Sep 2024 14:20:23 +0000 Original-Received: from localhost ([127.0.0.1]:47505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spTdP-0001SC-Fg for submit@debbugs.gnu.org; Sat, 14 Sep 2024 10:20:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spTdN-0001MA-0R for 73218-done@debbugs.gnu.org; Sat, 14 Sep 2024 10:20:21 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1spTd6-0002Sg-N2; Sat, 14 Sep 2024 10:20:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=+eHK7lc0Mbebj4fkFXo3SrT9bXFlg3ESe7MaTMHFSU0=; b=ogGtfMcvv8e0 YZEkshuDabyg7bHEg89p2Z8fmunLh489j1j5qzBTnGVXGYxR6lcW4SQIP1RAyVFqGU6/6IHY3HVRa Xton+m64Sihc+Sz5Tt6O3D+ILjY+TuH1NU3c3nnNHhOpMJQlZvSwLIjaPXcaTno9/LayJFlWQ/U+/ v1WjodEqUTHgffu4WCbwalFigMHSP/l8hAXQHMWWafuvVL3thvFIYgBRmT3SH0fEUjXbGATZ+z/eY yLoYkxh07qIQ6u4h+0+9cXumyEctG0a/h9kb4gAI7GV2lEpCG/1Mk8lUpv/t3nYQJ6aDDTblit1Rp 3IrQOdHgi8e6bJpz64B/5w==; In-Reply-To: <874j6iba4h.fsf@kenmankoff.com> (message from Ken Mankoff on Sat, 14 Sep 2024 07:09:02 -0700) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:291764 Archived-At: > From: Ken Mankoff > Cc: 73218@debbugs.gnu.org > Date: Sat, 14 Sep 2024 07:09:02 -0700 > > Hi Eli, > > On 2024-09-14 at 04:15 -07, Eli Zaretskii wrote... > >> From: Ken Mankoff > >> Cc: 73218@debbugs.gnu.org > >> Date: Fri, 13 Sep 2024 08:44:45 -0700 > >> > >> >> --- a/lisp/progmodes/fortran.el > >> >> +++ b/lisp/progmodes/fortran.el > >> >> @@ -1631,7 +1631,7 @@ fortran-calculate-indent > >> >> (setq icol (+ icol fortran-if-indent))) > >> >> ((looking-at "where[ \t]*(.*)[ \t]*\n") > >> >> (setq icol (+ icol fortran-if-indent))) > >> >> - ((looking-at "do\\b") > >> >> + ((looking-at "do[\\ |0-9]+.*=[\\ a-z0-9_]*,[\\ a-z0-9_]*") > > > > Since the SPC is optional in Fortran, how about the following instead? > > > > "do *[0-9]* *[a-z0-9_]+ *= *[a-z0-9_]+ *, *[a-z0-9_]+" > > > > Yes this pattern works. Thanks, so I've now installed this on the master branch, and I'm closing this bug.