From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dieter Schuster Newsgroups: gmane.emacs.bugs Subject: bug#9359: 23.3; Etags does not recognise pure functions in Fortran 90 Date: Wed, 24 Aug 2011 11:50:20 +0200 Message-ID: <20110824095020.GB5576@calculus> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="mvpLiMfbWzRoNl4x" X-Trace: dough.gmane.org 1314202178 19377 80.91.229.12 (24 Aug 2011 16:09:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Aug 2011 16:09:38 +0000 (UTC) To: 9359@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 24 18:09:35 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 1QwG1F-0008CV-7w for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Aug 2011 18:09:33 +0200 Original-Received: from localhost ([::1]:52496 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwG1E-00077b-Ki for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Aug 2011 12:09:32 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwFrZ-00070i-5V for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2011 11:59:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwFrU-0006Vc-NR for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2011 11:59:33 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwFrU-0006VY-Lq for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2011 11:59:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QwFtx-0007Tc-Vk; Wed, 24 Aug 2011 12:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dieter Schuster Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Aug 2011 16:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9359 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.131420168728679 (code B ref -1); Wed, 24 Aug 2011 16:02:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Aug 2011 16:01:27 +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 1QwFtO-0007SU-FP for submit@debbugs.gnu.org; Wed, 24 Aug 2011 12:01:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QwA86-0007JG-4v for submit@debbugs.gnu.org; Wed, 24 Aug 2011 05:52:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwA5c-0000j6-OG for submit@debbugs.gnu.org; Wed, 24 Aug 2011 05:49:41 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:60813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwA5c-0000j2-LT for submit@debbugs.gnu.org; Wed, 24 Aug 2011 05:49:40 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:32825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwA5b-0003Ly-NZ for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2011 05:49:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwA5a-0000iq-M2 for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2011 05:49:39 -0400 Original-Received: from mail-in-17.arcor-online.net ([151.189.21.57]:48049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwA5a-0000ia-H4 for bug-gnu-emacs@gnu.org; Wed, 24 Aug 2011 05:49:38 -0400 Original-Received: from mail-in-08-z2.arcor-online.net (mail-in-08-z2.arcor-online.net [151.189.8.20]) by mx.arcor.de (Postfix) with ESMTP id 1D48FCBF78 for ; Wed, 24 Aug 2011 11:49:36 +0200 (CEST) Original-Received: from mail-in-09.arcor-online.net (mail-in-09.arcor-online.net [151.189.21.49]) by mail-in-08-z2.arcor-online.net (Postfix) with ESMTP id 2063C77CB3 for ; Wed, 24 Aug 2011 11:49:36 +0200 (CEST) Original-Received: from localhost (dslb-188-097-077-209.pools.arcor-ip.net [188.97.77.209]) by mail-in-09.arcor-online.net (Postfix) with ESMTPS id 0C6A0197865 for ; Wed, 24 Aug 2011 11:49:36 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-09.arcor-online.net 0C6A0197865 Original-Received: by localhost (Postfix, from userid 1000) id 791EA801AD98; Wed, 24 Aug 2011 11:50:20 +0200 (CEST) Content-Disposition: inline X-Key-ID: 3072D/9D2B57A9 User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Wed, 24 Aug 2011 12:01:24 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 24 Aug 2011 12:02:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Wed, 24 Aug 2011 12:09:30 -0400 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:50290 Archived-At: --mvpLiMfbWzRoNl4x Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hello, etags does not recognize pure functions in Fortran 90 programs. There is a Fortran 90 program attached to this mail as an example. I've also add a patch in the attachment which fixed the bug. Kind regards, Dieter --mvpLiMfbWzRoNl4x Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="pure.f90" program pure contains function f(i) intent(in) :: i end function f pure function pf(i) intent(in) :: i end function pf end program pure --mvpLiMfbWzRoNl4x Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename="etags-pure.diff" --- etags.c.orig 2011-04-05 05:46:44.000000000 +0200 +++ etags.c 2011-08-24 11:39:31.512910651 +0200 @@ -4112,6 +4112,9 @@ if (LOOKING_AT_NOCASE (dbp, "recursive")) dbp = skip_spaces (dbp); + if (LOOKING_AT_NOCASE (dbp, "pure")) + dbp = skip_spaces (dbp); + switch (lowcase (*dbp)) { case 'i': --mvpLiMfbWzRoNl4x--