From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: haj@posteo.de (Harald =?UTF-8?Q?J=C3=B6rg?=) Newsgroups: gmane.emacs.bugs Subject: bug#48761: perl-mode: "$temp" colored differently. Date: Tue, 01 Jun 2021 08:17:41 +0000 Message-ID: <87tumingm2.fsf@hajtower> References: <87zgwbm4p9.5.fsf@jidanni.org> <8735u2f6bp.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2738"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson To: 48761@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 01 10:19:11 2021 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 1lnzcD-0000OU-P8 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Jun 2021 10:19:09 +0200 Original-Received: from localhost ([::1]:33110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnzcC-0005qz-Qz for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Jun 2021 04:19:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnzc6-0005qr-Tc for bug-gnu-emacs@gnu.org; Tue, 01 Jun 2021 04:19:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52355) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnzc6-0006Gr-Kw for bug-gnu-emacs@gnu.org; Tue, 01 Jun 2021 04:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lnzc6-0008CL-GO for bug-gnu-emacs@gnu.org; Tue, 01 Jun 2021 04:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: haj@posteo.de (Harald =?UTF-8?Q?J=C3=B6rg?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Jun 2021 08:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48761 X-GNU-PR-Package: emacs Original-Received: via spool by 48761-submit@debbugs.gnu.org id=B48761.162253548831451 (code B ref 48761); Tue, 01 Jun 2021 08:19:02 +0000 Original-Received: (at 48761) by debbugs.gnu.org; 1 Jun 2021 08:18:08 +0000 Original-Received: from localhost ([127.0.0.1]:35668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnzb0-0008Ag-G2 for submit@debbugs.gnu.org; Tue, 01 Jun 2021 04:18:08 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:57879) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnzaw-0008AO-35 for 48761@debbugs.gnu.org; Tue, 01 Jun 2021 04:17:53 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id BB8AD240028 for <48761@debbugs.gnu.org>; Tue, 1 Jun 2021 10:17:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1622535463; bh=rPPMujsXKPoFQ8hQhC0sgBZfAPY7Dx2kQpkd9rrUw4Y=; h=From:To:Cc:Subject:Date:From; b=oarqZQFRBxg/6ldYrjEoXfADgjEhmXye4itBRRH76vlqcy5jZ++SlmLelwmR+i/QF dZnwWt6Z0Bbn+ADZ4CLCSyqA2c3Ej17iiNP+8Lv5YnJRZPrq+FBbIvJUwxAHzFLDPG +hDHc7xjb9MpsF5iBsJzyVKm+ABbT/eFF8lGUdGUHRTabh6dc98jUl6H7U0BZuJUwc Bcq4OoZqT2jsYc1Puc2B6GIsMus27w4DvdtyjYtwRkCpCpoOUxbQY/iKG2Hu5Yr+5+ RKTbKdz64bSjyxcds5LAYr5orzR9pPs5w4AmifojtIDIcrgcKDhz6gL8S79mJXlYDM 3dPKzGNg9m71g== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FvQ516J9fz9rxS; Tue, 1 Jun 2021 10:17:41 +0200 (CEST) In-Reply-To: <8735u2f6bp.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 01 Jun 2021 08:27:06 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:207759 Archived-At: Lars Ingebrigtsen writes: > =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: > >> In perl-mode: $temp, @temp are colored differently. E.g., in >> my (@AA, @temp, @barf, $temp, $x); > > I can reproduce this in Emacs 27, but not in Emacs 28: I was too slow responding :/ This was patched with Bug#46024, which also has a list of other "keywords" which have been removed from perl-mode: anon, argument, supersede, let, and temp (sic!). https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D46024 It is still the case that perl-mode treats a few variables which have names like "legal" perl keywords as keywords and not as variables: for example $my, @our, %sub, &package. That would require a different patch, but these names are much less likely to occur in the wild. > So I'm closing this bug report. Different symptom, but same patch: I guess this should be merged? --=20 Cheers, haj