From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#14402: Imenu does not work any more on trunk Date: Tue, 14 May 2013 20:53:20 -0400 Message-ID: References: <51927625.8090204@alice.it> <51929CCC.4090902@alice.it> <5192B16D.8070104@alice.it> <0q1u99w70l.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1368579249 30629 80.91.229.3 (15 May 2013 00:54:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 May 2013 00:54:09 +0000 (UTC) Cc: 14402-done@debbugs.gnu.org, Angelo Graziosi To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 15 02:54:08 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UcPyp-0004LV-Gl for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 May 2013 02:54:07 +0200 Original-Received: from localhost ([::1]:54430 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcPyp-0005Z5-6O for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 May 2013 20:54:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcPyk-0005Yr-R5 for bug-gnu-emacs@gnu.org; Tue, 14 May 2013 20:54:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UcPyj-0002aY-SU for bug-gnu-emacs@gnu.org; Tue, 14 May 2013 20:54:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56513) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcPyj-0002aE-PI for bug-gnu-emacs@gnu.org; Tue, 14 May 2013 20:54:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UcPyk-0004gU-Qf for bug-gnu-emacs@gnu.org; Tue, 14 May 2013 20:54:02 -0400 Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 May 2013 00:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 14402 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 14402@debbugs.gnu.org, monnier@iro.umontreal.ca, angelo.graziosi@alice.it Original-Received: via spool by 14402-done@debbugs.gnu.org id=D14402.136857921117832 (code D ref 14402); Wed, 15 May 2013 00:54:02 +0000 Original-Received: (at 14402-done) by debbugs.gnu.org; 15 May 2013 00:53:31 +0000 Original-Received: from localhost ([127.0.0.1]:44868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UcPyE-0004dZ-UD for submit@debbugs.gnu.org; Tue, 14 May 2013 20:53:31 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:49126) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UcPyC-0004cS-Fs for 14402-done@debbugs.gnu.org; Tue, 14 May 2013 20:53:29 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFG4rwb8/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCwsOJhIUGA0kiB4GsR+QDpEKA6R6gV6DEw X-IPAS-Result: Av8EABK/CFG4rwb8/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCwsOJhIUGA0kiB4GsR+QDpEKA6R6gV6DEw X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="12050697" Original-Received: from 184-175-6-252.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([184.175.6.252]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 14 May 2013 20:53:15 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 24497AE0C3; Tue, 14 May 2013 20:53:20 -0400 (EDT) In-Reply-To: <0q1u99w70l.fsf@fencepost.gnu.org> (Glenn Morris's message of "Tue, 14 May 2013 18:06:50 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:74282 Archived-At: >> C-x C-f foo.f90 RET >> program foo >> end >> it should complete in "end program foo" instead it stays to "end". >> "end" is only indented, I just installed the patch below which seems to fix this. > This is all breakage from r112519. > Specifically, f90-looking-at-program-block-end is broken (and who knows > what else). Interestingly, the bug was caused by the fact that the old code relied on a bug in the handling of the \> regexp: more specifically \> treated (string-match "ab\\>?" foo) as (string-match "a\\(?:b\\>\\)?" foo) instead of the expected (string-match "ab\\(?:\\>\\)?" foo). Stefan === modified file 'lisp/progmodes/f90.el' --- lisp/progmodes/f90.el 2013-05-14 19:29:35 +0000 +++ lisp/progmodes/f90.el 2013-05-15 00:40:06 +0000 @@ -842,14 +842,14 @@ ;; Regexps for finding program structures. (defconst f90-blocks-re - (concat "\\(block[ \t]*data\\|" + (concat "\\(\\(?:block[ \t]*data\\|" (regexp-opt '("do" "if" "interface" "function" "module" "program" "select" "subroutine" "type" "where" "forall" ;; F2003. "enum" "associate" ;; F2008. "submodule" "block" "critical")) - "\\)\\_>") + "\\)\\_>\\)") "Regexp potentially indicating a \"block\" of F90 code.") (defconst f90-program-block-re