From rgm@gnu.org Thu Jul 23 14:49:29 2009 Received: (at quiet) by emacsbugs.donarmstrong.com; 23 Jul 2009 21:49:29 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-8.0 required=4.0 tests=HAS_PACKAGE,IMPRONONCABLE_2, MURPHY_DRUGS_REL8,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6NLnNeA001897 for ; Thu, 23 Jul 2009 14:49:24 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MU6AD-0001mP-QR for quiet@emacsbugs.donarmstrong.com; Thu, 23 Jul 2009 17:49:21 -0400 From: Nathaniel Flath To: quiet@debbugs.gnu.org Subject: Minor bug in cc-menus.el: cc-imenu-java-generic-expression does not match all Java 1.5+ function definitions. Date: Sat, 18 Jul 2009 08:27:10 -0700 Lines: 60 X-From-Line: emacs-devel-bounces+rgm=gnu.org@gnu.org Sat Jul 18 11:28:47 2009 Received: from mail.gnu.org ([199.232.76.166]:34709 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MSBqB-0006zm-15 for rgm@gnu.org; Sat, 18 Jul 2009 11:28:47 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MSBq9-0006jL-N4 for rgm@gnu.org; Sat, 18 Jul 2009 11:28:46 -0400 Received: from lists.gnu.org ([199.232.76.165]:49661) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MSBq9-0006j8-CJ for rgm@gnu.org; Sat, 18 Jul 2009 11:28:45 -0400 Received: from localhost ([127.0.0.1]:47832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MSBq9-0003qi-1n for rgm@gnu.org; Sat, 18 Jul 2009 11:28:45 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MSBok-0003hF-9n for emacs-devel@gnu.org; Sat, 18 Jul 2009 11:27:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MSBof-0003eJ-An for emacs-devel@gnu.org; Sat, 18 Jul 2009 11:27:17 -0400 Received: from [199.232.76.173] (port=53446 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MSBoe-0003e9-PH for emacs-devel@gnu.org; Sat, 18 Jul 2009 11:27:12 -0400 Received: from mail-pz0-f202.google.com ([209.85.222.202]:58480) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MSBoe-0006Ed-3Z for emacs-devel@gnu.org; Sat, 18 Jul 2009 11:27:12 -0400 Received: by pzk40 with SMTP id 40so1018444pzk.14 for ; Sat, 18 Jul 2009 08:27:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=AyE05Qr/SWzciB5X4kPDWTwvj5NSkwlBk098OpwVKzY=; b=i9E2oUchkCujkr5bNKmmhmVaXFMsk+mn3IEqcsaVH4i4lgspu/EGrD5VU1VQfQnOKF w590DqBEdzHknFppJpsHWeok2rhPE4O/CuhS1bwNMPfBu//WTTru4E88M7GrYNcDuNiU 1nv0P9xUkMiQRcGwWMDrqN62BxtkSEWZ2/nT4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=FYVJx7zVc5gIL9S7xScPd0uYP6uZ7oQ722plsJPNWEHe2H539s3khgRc4XQleInVZi ZLTfU0fprhIbUIqSva3RKejfsdDDGYB0u+rJ05eET15Jl57QkvcolKb/Dvt6zZ6sdxd0 2svmI6Wv5SbkB8oGEVqlJtYT3Pa1vEQUZC7Cc= Received: by 10.141.49.20 with SMTP id b20mr1155647rvk.1.1247930830215; Sat, 18 Jul 2009 08:27:10 -0700 (PDT) X-Debbugs-No-Ack: yes X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+rgm=gnu.org@gnu.org X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Sender: Glenn Morris --=-=-= Content-Type: multipart/alternative; boundary="==-=-=" --==-=-= Content-Type: text/plain; charset=iso-8859-1 Package: emacs,cc-mode I was using Imenu, and noticed that it currently doesn't recognize Java functions with either: Generics e.g : public List foo() { ... or annotated arguments, e.g : public void foo( @NonNull bar ) { The issue was the variable cc-imenu-java-generic-expression. Attached is my patch which modifies this variables to accept all function definitions and should fix this issue. Thanks! Nathaniel Flath --==-=-= Content-Type: text/html; charset=iso-8859-1 Package: emacs,cc-mode I was using Imenu, and noticed that it currently doesn't recognize Java functions with either:
Generics e.g : public List<String> foo() { ...
or annotated arguments, e.g : public void foo( @NonNull bar ) {


The issue was the variable cc-imenu-java-generic-expression.

Attached is my patch which modifies this variables to accept all function definitions and should fix this issue.


Thanks!
Nathaniel Flath
--==-=-=-- --=-=-= Content-Type: text/x-patch; name=cc-menus.patch Content-Disposition: attachment; filename=cc-menus.patch index b151bd0..8a87448 100644 --- a/lisp/progmodes/cc-menus.el +++ b/lisp/progmodes/cc-menus.el @@ -149,17 +149,18 @@ A sample value might look like: `\\(_P\\|_PROTO\\)'.") (defvar cc-imenu-java-generic-expression `((nil ,(concat - "[" c-alpha "_][\]\[." c-alnum "_]+[ \t\n\r]+" ; type spec + "[" c-alpha "_][\]\[." c-alnum "_<> ]+[ \t\n\r]+" ; type spec "\\([" c-alpha "_][" c-alnum "_]+\\)" ; method name "[ \t\n\r]*" ;; An argument list that is either empty or contains at least - ;; two identifiers with only space between them. This avoids + ;; two words with whitespace in between them. Words are + ;; identifiers and <>@ characers. This prevents us from ;; matching e.g. "else if (foo)". (concat "([ \t\n\r]*" - "\\([\]\[.," c-alnum "_]+" + "\\([\]\[.," c-alnum "_@<> ]+" "[ \t\n\r]+" "[\]\[.," c-alnum "_]" - "[\]\[.," c-alnum "_ \t\n\r]*" + "[\]\[.," c-alnum "_ \t\n\r@<> ]*" "\\)?)") "[.," c-alnum "_ \t\n\r]*" "{" --=-=-=-- From rgm@gnu.org Wed Nov 18 23:26:17 2009 Received: (at control) by emacsbugs.donarmstrong.com; 19 Nov 2009 07:26:18 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.2 required=4.0 tests=AWL,ONEWORD,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAJ7QGMA030996 for ; Wed, 18 Nov 2009 23:26:17 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1NB1PB-00029T-RH; Thu, 19 Nov 2009 02:26:13 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19204.62229.436097.660359@fencepost.gnu.org> Date: Thu, 19 Nov 2009 02:26:13 -0500 From: Glenn Morris To: control Subject: control X-Debbugs-No-Ack: yes close 3910 reassign 4943 spam reassign 4945 spam reassign 4955 spam reassign 4959 spam severity 4960 wishlist reassign 4961 spam severity 4962 wishlist severity 4963 wishlist reassign 4964 spam severity 4944 wishlist tags 4944 moreinfo tags 4946 moreinfo From unknown Thu Jun 19 14:04:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 17 Dec 2009 12:24:02 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator