From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#18378: [Patch] wrong fontification of Java code Date: Thu, 23 Jan 2020 18:09:47 +0000 Message-ID: <20200123180947.GA30959@ACM> References: <87eevtq14x.fsf@marxist.se> <20200122205906.GC4319@ACM> <87h80mgt1q.fsf@marxist.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="83095"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Jordon Biondo , 18378@debbugs.gnu.org, Paul Pogonyshev To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 23 21:28:12 2020 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 1iuj5I-000Lav-At for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Jan 2020 21:28:12 +0100 Original-Received: from localhost ([::1]:33490 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuj5H-0000iZ-CH for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Jan 2020 15:28:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41887) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iugvb-0004Wo-8E for bug-gnu-emacs@gnu.org; Thu, 23 Jan 2020 13:10:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iugva-00024P-8y for bug-gnu-emacs@gnu.org; Thu, 23 Jan 2020 13:10:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47178) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iugva-00024L-5D for bug-gnu-emacs@gnu.org; Thu, 23 Jan 2020 13:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iugva-0007Am-0t for bug-gnu-emacs@gnu.org; Thu, 23 Jan 2020 13:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Jan 2020 18:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18378 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 18378-submit@debbugs.gnu.org id=B18378.157980299227552 (code B ref 18378); Thu, 23 Jan 2020 18:10:01 +0000 Original-Received: (at 18378) by debbugs.gnu.org; 23 Jan 2020 18:09:52 +0000 Original-Received: from localhost ([127.0.0.1]:53151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iugvQ-0007AK-MH for submit@debbugs.gnu.org; Thu, 23 Jan 2020 13:09:52 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:16620 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1iugvO-0007AB-QT for 18378@debbugs.gnu.org; Thu, 23 Jan 2020 13:09:51 -0500 Original-Received: (qmail 89747 invoked by uid 3782); 23 Jan 2020 18:09:48 -0000 Original-Received: from acm.muc.de (p4FE15BF5.dip0.t-ipconnect.de [79.225.91.245]) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 23 Jan 2020 19:09:47 +0100 Original-Received: (qmail 31044 invoked by uid 1000); 23 Jan 2020 18:09:47 -0000 Content-Disposition: inline In-Reply-To: <87h80mgt1q.fsf@marxist.se> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:175190 Archived-At: Hello, Stefan. On Thu, Jan 23, 2020 at 15:13:05 +0100, Stefan Kangas wrote: > Hi Alan, > Alan Mackenzie writes: > > I missed this bug report back in 2014. The code has moved around so > > much since then that Jordon's patch no longer applies. But a simple > > patch with the same idea appears to fix this bug: > Thanks for taking a look. > With your fix, applied on the master branch, in the example given: > class X > { > public void x () > { > for (int this_is_not_a_function_name : getX ()) { > } > } > } > The "int" no longer has font-lock-type-face. Should it? That's funny. It has font-lock-type-face for me, in all of emacs-27, master and standalone CC Mode (in master). font-lock-type-face is indeed correct, here. Are you sure you were .... (I don't think I need to fill in the dots for you. ;-) > Best regards, > Stefan Kangas -- Alan Mackenzie (Nuremberg, Germany).