From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#8691: 23.2; In fortran 90 mode, f90-indent-subprogram gets confused by bind(c) type definitions Date: Wed, 18 May 2011 15:10:58 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1305745932 26110 80.91.229.12 (18 May 2011 19:12:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 May 2011 19:12:12 +0000 (UTC) Cc: 8691@debbugs.gnu.org To: James Tappin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 18 21:12:08 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QMmAB-0007ZZ-2L for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 May 2011 21:12:07 +0200 Original-Received: from localhost ([::1]:38940 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMmAA-0005G6-4u for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 May 2011 15:12:06 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMmA7-0005G1-M8 for bug-gnu-emacs@gnu.org; Wed, 18 May 2011 15:12:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QMmA6-0002HG-UZ for bug-gnu-emacs@gnu.org; Wed, 18 May 2011 15:12:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMmA6-0002HB-Mc for bug-gnu-emacs@gnu.org; Wed, 18 May 2011 15:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QMmA6-0001Q0-3I; Wed, 18 May 2011 15:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 May 2011 19:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8691 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8691-submit@debbugs.gnu.org id=B8691.13057458675371 (code B ref 8691); Wed, 18 May 2011 19:12:02 +0000 Original-Received: (at 8691) by debbugs.gnu.org; 18 May 2011 19:11:07 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QMm9C-0001OZ-M0 for submit@debbugs.gnu.org; Wed, 18 May 2011 15:11:06 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QMm9A-0001O1-Go for 8691@debbugs.gnu.org; Wed, 18 May 2011 15:11:05 -0400 Original-Received: from localhost ([127.0.0.1]:57960) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMm95-0003Ca-9V; Wed, 18 May 2011 15:10:59 -0400 X-Spook: monarchist Israel John Kerry world domination CISU Craig X-Ran: _0bgbIJ>1pmBm"IM}7T\oK^HDeCsA*Xr59)"{46Jum9IVE,gC+vDXN5I)Dx|A_[lIJ%3GK X-Hue: magenta X-Attribution: GM In-Reply-To: (James Tappin's message of "Wed, 18 May 2011 09:51:58 -0600") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 18 May 2011 15:12:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:46562 Archived-At: Hello, I think this patch fixes it. You can test it with: (setq f90-type-def-re "...value-from-patch...") *** lisp/progmodes/f90.el 2011-02-04 03:21:11 +0000 --- lisp/progmodes/f90.el 2011-05-18 19:09:26 +0000 *************** *** 809,816 **** ;; type word ;; type :: word ;; type, stuff :: word ;; NOT "type (" ! "\\<\\(type\\)\\>\\(?:[^()\n]*::\\)?[ \t]*\\(\\sw+\\)" "Regexp matching the definition of a derived type.") (defconst f90-typeis-re --- 809,818 ---- ;; type word ;; type :: word ;; type, stuff :: word + ;; type, bind(c) :: word ;; NOT "type (" ! "\\<\\(type\\)\\>\\(?:\\(?:[^()\n]*\\|\ ! .*,[ \t]*bind[ \t]*([ \t]*c[ \t]*)[ \t]*\\)::\\)?[ \t]*\\(\\sw+\\)" "Regexp matching the definition of a derived type.") (defconst f90-typeis-re