GNU bug report logs - #72296
29.4; cperl-mode parsing error

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: brian <me@HIDDEN>; Owned by: Harald Jörg <haj@HIDDEN>; Keywords: confirmed; dated Thu, 25 Jul 2024 16:51:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 72296 <at> debbugs.gnu.org:


Received: (at 72296) by debbugs.gnu.org; 26 Jul 2024 10:38:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 26 06:38:50 2024
Received: from localhost ([127.0.0.1]:38857 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sXILa-0003t9-CB
	for submit <at> debbugs.gnu.org; Fri, 26 Jul 2024 06:38:50 -0400
Received: from eggs.gnu.org ([209.51.188.92]:54992)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sXILY-0003st-RO
 for 72296 <at> debbugs.gnu.org; Fri, 26 Jul 2024 06:38:49 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1sXILK-0008QR-S6; Fri, 26 Jul 2024 06:38:34 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=4Sh9LhayO9g/j4egSVI709orYEQ/kwtYFhVq0oR5ReU=; b=OsSywa9jn4gK
 Yi5NHF5E04Jk5sQbayoVfSZeFBdbmGGKLHeiIgIACwkipactX3L7r6AYoYKhoDBn95DWYiVp7qEat
 5uhnyrVXv5ZtYLfzWZcoWK+ltR0FhXBfqjFWZb4uqmsgI7u/qwLTscxH/428uUiJOmp0VEFS926qJ
 Bh6l5JCKpOKCZbScnqNI4QyQ3WtEVdgsw/vkANQvSAiqYUPWIeDSM5AuO2uDt8a5DFSu6NG2rNp6U
 xNHcXca6SSfvXxFDHDQNCVKfOruzZrOvs0el9YswdovzPf6vaSA3DgdeQrWfKoZiyI3Fh1i4J0GNA
 oeC+5lmzeCUGYoQDsF7Epg==;
Date: Fri, 26 Jul 2024 13:38:32 +0300
Message-Id: <86sevw30bb.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Andrea Corallo <acorallo@HIDDEN>
In-Reply-To: <yp1ttgcoa08.fsf@HIDDEN> (message from Andrea Corallo
 on Fri, 26 Jul 2024 04:03:35 -0400)
Subject: Re: bug#72296: 29.4; cperl-mode parsing error
References: <0c1147f0-9656-4860-ad58-dd1e24b75634@HIDDEN>
 <yp1ed7hpfrp.fsf@HIDDEN>
 <20240725183057.dqp2aii5asd5tdgv@dev> <yp1ttgcoa08.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 72296
Cc: dev@HIDDEN, 72296 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: 72296 <at> debbugs.gnu.org
> From: Andrea Corallo <acorallo@HIDDEN>
> Date: Fri, 26 Jul 2024 04:03:35 -0400
> 
> brian greenfield <dev@HIDDEN> writes:
> 
> > On Thu, Jul 25, 2024 at 01:01:30PM -0400, Andrea Corallo wrote:
> >> I might be doing something wrong but I cannot reproduce on emacs-30,
> >> could you confirm?  29 is not under development anymore.
> >
> > No, it was me in the wrong. My emacs-30 was too old, retrying on a newer
> > emacs-30 has the bug fixed.
> >
> > Sorry for the noise.
> 
> [re-adding the list, please keep it Cced in the replies]
> 
> Actually the others can still reproduce on more recent versions (I
> can't), so I'm all but sure this is solved (and I'm a little puzzled on
> the reproducibility of this).

Wasn't this fixed today on the emacs-30 branch?




Information forwarded to bug-gnu-emacs@HIDDEN, Harald Jörg <haj@HIDDEN>:
bug#72296; Package emacs. Full text available.

Message received at 72296 <at> debbugs.gnu.org:


Received: (at 72296) by debbugs.gnu.org; 26 Jul 2024 10:20:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 26 06:20:32 2024
Received: from localhost ([127.0.0.1]:38819 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sXI3r-0003N6-Mn
	for submit <at> debbugs.gnu.org; Fri, 26 Jul 2024 06:20:32 -0400
Received: from mout01.posteo.de ([185.67.36.65]:60207)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <haj@HIDDEN>) id 1sXI3p-0003Mr-6V
 for 72296 <at> debbugs.gnu.org; Fri, 26 Jul 2024 06:20:31 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id 888AB24002A
 for <72296 <at> debbugs.gnu.org>; Fri, 26 Jul 2024 12:20:14 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017;
 t=1721989214; bh=idj34YzoenFBBBbPdAjHr5hcdfcSAXk9qUL3jsBj85M=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type:
 Content-Transfer-Encoding:From;
 b=eJuDvBYHYlcUeWE66hKICkypDAiWOFZHvJGYNT+u50k/wV5uQvkQHLbZHDcq3o6mo
 nlInSE2t40oSuEInpJVfXeUoLlMGH/5Cj5huAfi3Brc774T0QdQtQwjRTwqOGUQsRZ
 i/RjwnpoOCNeEngtkeacBYm2IITFp77oecBbSYD1opd2bLz7ab+iZgl6J4V1kP00CZ
 rUcDbWYtDVkFw62dk71kUnVaCpbiMn8B8UCYkHNSUhALMpcg6GfAhj0ZdxU81TKqzx
 cXV+B57fNxpyKAeNPOn+jOhZSkKSLajFWZrpbBhDK2TlskPhWZ17UTW70qWEuiaUwp
 TgRHv2BhDaogA==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4WVkK91Xnfz6tyc;
 Fri, 26 Jul 2024 12:20:12 +0200 (CEST)
From: =?utf-8?Q?Harald_J=C3=B6rg?= <haj@HIDDEN>
To: Andrea Corallo <acorallo@HIDDEN>
Subject: Re: bug#72296: 29.4; cperl-mode parsing error
In-Reply-To: <yp1ttgcoa08.fsf@HIDDEN> (Andrea Corallo's message of
 "Fri, 26 Jul 2024 04:03:35 -0400")
References: <0c1147f0-9656-4860-ad58-dd1e24b75634@HIDDEN>
 <yp1ed7hpfrp.fsf@HIDDEN>
 <20240725183057.dqp2aii5asd5tdgv@dev>
 <yp1ttgcoa08.fsf@HIDDEN>
Date: Fri, 26 Jul 2024 10:20:12 +0000
Message-ID: <87h6ccqwtf.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 72296
Cc: brian greenfield <dev@HIDDEN>, 72296 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Andrea Corallo <acorallo@HIDDEN> writes:

> brian greenfield <dev@HIDDEN> writes:
>
>> On Thu, Jul 25, 2024 at 01:01:30PM -0400, Andrea Corallo wrote:
>>> I might be doing something wrong but I cannot reproduce on emacs-30,
>>> could you confirm?  29 is not under development anymore.
>>
>> No, it was me in the wrong. My emacs-30 was too old, retrying on a newer
>> emacs-30 has the bug fixed.
>>
>> Sorry for the noise.
>
> [re-adding the list, please keep it Cced in the replies]
>
> Actually the others can still reproduce on more recent versions (I
> can't), so I'm all but sure this is solved (and I'm a little puzzled on
> the reproducibility of this).

If either of you built your emacs-30 with the commit c27055a9 in place,
then it is supposed to be not reproducible: I fixed it yesterday.

Until the regular rebasing happens, it can still be reproduced on
master.  I may be stating the obvious, but the code is

for (2..$n/2) {}

without any enclosing quotes.  If you apply cperl-mode for this snippet,
you should see the message "End of =E2=80=98/ ... /=E2=80=99 string/RE not =
found:
(scan-error Unbalanced parentheses 11 17)" in the echo area, the slash
should be formatted with font-lock-constant-face, the 2 following it
with font-lock-string-face and the closing paren with
font-lock-warning-face.

If you can not reproduce the error on master, then I'd like to examine
this further before closing the bug.

--=20
Cheers,
haj




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#72296; Package emacs. Full text available.

Message received at 72296 <at> debbugs.gnu.org:


Received: (at 72296) by debbugs.gnu.org; 26 Jul 2024 08:04:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 26 04:04:04 2024
Received: from localhost ([127.0.0.1]:38744 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sXFvo-0007gd-HL
	for submit <at> debbugs.gnu.org; Fri, 26 Jul 2024 04:04:04 -0400
Received: from eggs.gnu.org ([209.51.188.92]:48836)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <acorallo@HIDDEN>) id 1sXFvm-0007fz-JX
 for 72296 <at> debbugs.gnu.org; Fri, 26 Jul 2024 04:04:03 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <acorallo@HIDDEN>)
 id 1sXFvT-0000k5-Jx; Fri, 26 Jul 2024 04:03:47 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=Qq2yLZgKAjMJvX3uZQ0uldWOtGBMsM966N8vFBC2hKI=; b=Rfy2WydXJg9Rgba0oCzh
 +3N6u0WkVmyxpPx1wAga7sWG6+8lJaVhEW6Be16YZRNMoIYg5nxvlFZXh3nhPPSIiC4u8ONQ+MSll
 hTgllFfFmf3UMNVtOoZUpI7wK/lPhvXtzTwBaosjLOI9oggtrhg4r2rit2VG+4R92acI0vUX+VIwR
 kPVcx1ySrt+oKLBIVg089JnKqxDchAtAM1kpwR9PWQdFABUKx/aa2Gwyj8c6QbHGHZz0zOkkYCck/
 US7n94fA6sKS1gDclBXhwCSHlm99gpUfBuLSKsluKWy1Q1bdpXGEYaMk/naytE23o460YhrnzijGW
 Y1zqUyRfEcDzcw==;
Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1)
 (envelope-from <acorallo@HIDDEN>)
 id 1sXFvL-0005AV-TS; Fri, 26 Jul 2024 04:03:43 -0400
From: Andrea Corallo <acorallo@HIDDEN>
To: brian greenfield <dev@HIDDEN>
Subject: Re: bug#72296: 29.4; cperl-mode parsing error
In-Reply-To: <20240725183057.dqp2aii5asd5tdgv@dev> (brian greenfield's message
 of "Thu, 25 Jul 2024 19:30:57 +0100")
References: <0c1147f0-9656-4860-ad58-dd1e24b75634@HIDDEN>
 <yp1ed7hpfrp.fsf@HIDDEN>
 <20240725183057.dqp2aii5asd5tdgv@dev>
Date: Fri, 26 Jul 2024 04:03:35 -0400
Message-ID: <yp1ttgcoa08.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 72296
Cc: 72296 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

brian greenfield <dev@HIDDEN> writes:

> On Thu, Jul 25, 2024 at 01:01:30PM -0400, Andrea Corallo wrote:
>> I might be doing something wrong but I cannot reproduce on emacs-30,
>> could you confirm?  29 is not under development anymore.
>
> No, it was me in the wrong. My emacs-30 was too old, retrying on a newer
> emacs-30 has the bug fixed.
>
> Sorry for the noise.

[re-adding the list, please keep it Cced in the replies]

Actually the others can still reproduce on more recent versions (I
can't), so I'm all but sure this is solved (and I'm a little puzzled on
the reproducibility of this).

  Andrea




Information forwarded to bug-gnu-emacs@HIDDEN, Harald Jörg <haj@HIDDEN>:
bug#72296; Package emacs. Full text available.

Message received at 72296 <at> debbugs.gnu.org:


Received: (at 72296) by debbugs.gnu.org; 26 Jul 2024 08:00:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 26 04:00:17 2024
Received: from localhost ([127.0.0.1]:38738 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sXFs8-0007Vk-Ox
	for submit <at> debbugs.gnu.org; Fri, 26 Jul 2024 04:00:17 -0400
Received: from eggs.gnu.org ([209.51.188.92]:39582)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <acorallo@HIDDEN>) id 1sXFs5-0007U7-15
 for 72296 <at> debbugs.gnu.org; Fri, 26 Jul 2024 04:00:15 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <acorallo@HIDDEN>)
 id 1sXFrp-0007lN-LV; Fri, 26 Jul 2024 03:59:58 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=gnCAY7MZi2JjgDyK5Fb/oIU1LSPQK7IE1MItx150z1Y=; b=CAwF8fkrxeP3MrFzJ16A
 wO62KdUiiAcaGIiZ1d2ZVxXFSgAWv07uJupBQ2GrlEgfb099Nk8PgRJwXjCWeNzc9Y83z3KdLCUxW
 BcFwo4YXxwoqwLAPC/RhtLK9/QKOBYtoysXV8JTw8ozN2MzDMYRocGP8Z2JEH4KX3PtPStJS7Z+f2
 dLTP8U1c1l/YKbxOxTqvOWT7uWYFwYl80UAg6DmyHdbsl6Nhv+QiwXk73oRuN6NSivuQM3IgUZn/Q
 kS31BtH/Vy6nvK9rSKagSiA3FYNgRwxflRJ/I8ya1lWK8SNyA095D+Ndo0vtasYC7WMT41GbQ4o2P
 y5Nve3ax+SHdHw==;
Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1)
 (envelope-from <acorallo@HIDDEN>)
 id 1sXFro-0005NG-9x; Fri, 26 Jul 2024 03:59:56 -0400
From: Andrea Corallo <acorallo@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#72296: 29.4; cperl-mode parsing error
In-Reply-To: <865xst47hg.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 25 Jul
 2024 22:06:03 +0300")
References: <0c1147f0-9656-4860-ad58-dd1e24b75634@HIDDEN>
 <yp1ed7hpfrp.fsf@HIDDEN> <865xst47hg.fsf@HIDDEN>
Date: Fri, 26 Jul 2024 03:59:56 -0400
Message-ID: <yp1y15ooa6b.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 72296
Cc: me@HIDDEN, 72296 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Eli Zaretskii <eliz@HIDDEN> writes:

>> Cc: 72296 <at> debbugs.gnu.org
>> From: Andrea Corallo <acorallo@HIDDEN>
>> Date: Thu, 25 Jul 2024 13:01:30 -0400
>>=20
>> brian <me@HIDDEN> writes:
>>=20
>> > I started emacs using 'emacs -Q /tmp/some-empty-file.pl' and activated
>> > cperl mode by 'M-x cperl-mode'. I typed 'for (2..$n/2) {}' into the
>> > empty buffer and as soon as I pressed '/' there was an error message in
>> > the minibuffer
>> >
>> > End of =E2=80=98/ ... /=E2=80=99 string/RE not found: (scan-error Unba=
lanced
>> > parentheses 11 38)
>> >
>> > and syntax hilighting was broken. Inserting a single space before '$'
>> > cleared the error and fixed the hilighting.
>> >
>> >
>> >
>> > In GNU Emacs 29.4 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.38,
>> > cairo version 1.18.0) of 2024-06-24 built on dev
>> > Windowing system distributor 'The X.Org Foundation', version 11.0.1230=
2000
>> > System Description: Ubuntu 23.10
>>=20
>> I might be doing something wrong but I cannot reproduce on emacs-30,
>> could you confirm?  29 is not under development anymore.
>
> I can reproduce on master.  Be sure to invoke cperl-mode, and type
> exactly the text the OP shows.

So I do but can't reproduce, I must be doing something wrong sorry =F0=9F=
=A4=B7




Information forwarded to bug-gnu-emacs@HIDDEN, Harald Jörg <haj@HIDDEN>:
bug#72296; Package emacs. Full text available.
Owner recorded as Harald Jörg <haj@HIDDEN>. Request was from Harald Jörg <haj@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) confirmed. Request was from Harald Jörg <haj@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 72296 <at> debbugs.gnu.org:


Received: (at 72296) by debbugs.gnu.org; 25 Jul 2024 19:06:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 25 15:06:54 2024
Received: from localhost ([127.0.0.1]:37792 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sX3ni-0004fz-0I
	for submit <at> debbugs.gnu.org; Thu, 25 Jul 2024 15:06:54 -0400
Received: from mout02.posteo.de ([185.67.36.66]:46405)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <haj@HIDDEN>) id 1sX3nf-0004fa-1Q
 for 72296 <at> debbugs.gnu.org; Thu, 25 Jul 2024 15:06:52 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 7BF12240101
 for <72296 <at> debbugs.gnu.org>; Thu, 25 Jul 2024 21:06:36 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017;
 t=1721934397; bh=fCmZReDY4vEZuxtws6L+94yRlgg1Z9Cq4kV5/kPh5Ro=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type:
 Content-Transfer-Encoding:From;
 b=GKlfqQnbwQmIf2SAxvFK+Rzye5MDZEW3LJkiKRc39neVVj7csog2W8gQzDFoR5JH0
 1VT8/yB7460/Q1muqR0ElDiRCybcO6FXbpwRt2lhBMRYLQOYAcI/U9jaWCRLI2sSua
 76lV42IWWvyEUjaXkwMkVVKvleTAgOOHNOMlqRQf433ntb1Xa6OSvoDWKSKtShe+hh
 mi/c5jR+dkZIKogz9wJlemALNZWOarK2kWpi8gjb01FWqQehvwfELOXmqGI1TsUCUC
 O2EeNjDMXlQlDs3h1CX2Ji6oWKIyKXwZEGWm7gh8XT5OBa0Tfx+0OpIh0MZ3bUeQNO
 CF6ggrq2NPzdQ==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4WVL301KMwz9rxB;
 Thu, 25 Jul 2024 21:06:36 +0200 (CEST)
From: =?utf-8?Q?Harald_J=C3=B6rg?= <haj@HIDDEN>
To: 72296 <at> debbugs.gnu.org
Subject: Re: bug#72296: 29.4; cperl-mode parsing error
In-Reply-To: <0c1147f0-9656-4860-ad58-dd1e24b75634@HIDDEN> (brian's
 message of "Thu, 25 Jul 2024 14:29:37 +0100")
References: <0c1147f0-9656-4860-ad58-dd1e24b75634@HIDDEN>
Date: Thu, 25 Jul 2024 19:06:35 +0000
Message-ID: <87frrxjnpg.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 72296
Cc: brian <me@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

tags 72296 confirmed
severity 72296 normal
owner 72296 Harald J=C3=B6rg <haj@HIDDEN>
thanks

brian <me@HIDDEN> writes:

> I started emacs using 'emacs -Q /tmp/some-empty-file.pl' and activated
> cperl mode by 'M-x cperl-mode'. I typed 'for (2..$n/2) {}' into the
> empty buffer and as soon as I pressed '/' there was an error message in
> the minibuffer
>
> End of =E2=80=98/ ... /=E2=80=99 string/RE not found: (scan-error Unbalan=
ced
> parentheses 11 38)
>
> and syntax hilighting was broken. Inserting a single space before '$'
> cleared the error and fixed the hilighting.

I can reproduce this and am about to prepare a fix.

That code sits here since 1997, I find it rather surprising that it has
not surfaced until now.  I'll run some tests and add a test case.  If I
am not mistaken, then replacing a `progn` with `save-excursion` should
do the trick:

index b85db699e72..34481925d3e 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -4108,7 +4108,7 @@ cperl-find-pods-heres
                                    (and (eq (preceding-char) ?\})
                                         (cperl-after-block-p (point-min)))
                                    (and (eq (char-syntax (preceding-char))=
 ?w)
-                                        (progn
+                                        (save-excursion
                                           (forward-sexp -1)
 ;; After these keywords `/' starts a RE.  One should add all the
 ;; functions/builtins which expect an argument, but ...

In newer versions the line numbers are different (~4650) but the issue
is the same.  The unprotected (forward-sexp -1) skips over $n and the
two characters before that are '..' which, in the following clause,
makes the construct look like a flip-flop operator where '/' does start
a regular expression.  Using 'save-excursion' undoes the skip before
running the next checks.

--=20
Cheers,
haj




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#72296; Package emacs. Full text available.

Message received at 72296 <at> debbugs.gnu.org:


Received: (at 72296) by debbugs.gnu.org; 25 Jul 2024 19:06:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 25 15:06:40 2024
Received: from localhost ([127.0.0.1]:37788 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sX3nT-0004fK-HX
	for submit <at> debbugs.gnu.org; Thu, 25 Jul 2024 15:06:39 -0400
Received: from eggs.gnu.org ([209.51.188.92]:46110)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sX3nP-0004f2-0v
 for 72296 <at> debbugs.gnu.org; Thu, 25 Jul 2024 15:06:38 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1sX3nA-00065i-4B; Thu, 25 Jul 2024 15:06:21 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=EdkF3cQ6/RxriyRxW7jkorXRzHVaQ0vhAnAK/zNSU0A=; b=NSdIMMCGdjQil2rUipOB
 OgzcPibNiVsoB69oUl9djf1WOwdH/WPlDimHb9ABVQnWRCli6IYLW3wZembqOtFg/kOqkWbuPhZnb
 NfJHTeUpYPAiCLgWJ+ud+ixAIPmHwh6+JzbZJmyMUoe+2VVplh8l0L706ezZmzASTX2HbdfBM+jZz
 SWPl1MrjSrxShajGDuvveL8lhcQenFRpbcUAKRPBO0eRoHvCNq6KvimXXfHiGgmAOXR9Hz/e03I6O
 Kr9itQ3gcomCPk1C1rQ5pQD+fcq7J7BSg3fyhyw09SKSk8rvBWmsiVdYVC78FnOmg8w/TdFk+skzc
 GffdtKe2mT5mUA==;
Date: Thu, 25 Jul 2024 22:06:03 +0300
Message-Id: <865xst47hg.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Andrea Corallo <acorallo@HIDDEN>
In-Reply-To: <yp1ed7hpfrp.fsf@HIDDEN> (message from Andrea Corallo
 on Thu, 25 Jul 2024 13:01:30 -0400)
Subject: Re: bug#72296: 29.4; cperl-mode parsing error
References: <0c1147f0-9656-4860-ad58-dd1e24b75634@HIDDEN>
 <yp1ed7hpfrp.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 72296
Cc: me@HIDDEN, 72296 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: 72296 <at> debbugs.gnu.org
> From: Andrea Corallo <acorallo@HIDDEN>
> Date: Thu, 25 Jul 2024 13:01:30 -0400
> 
> brian <me@HIDDEN> writes:
> 
> > I started emacs using 'emacs -Q /tmp/some-empty-file.pl' and activated
> > cperl mode by 'M-x cperl-mode'. I typed 'for (2..$n/2) {}' into the
> > empty buffer and as soon as I pressed '/' there was an error message in
> > the minibuffer
> >
> > End of ‘/ ... /’ string/RE not found: (scan-error Unbalanced
> > parentheses 11 38)
> >
> > and syntax hilighting was broken. Inserting a single space before '$'
> > cleared the error and fixed the hilighting.
> >
> >
> >
> > In GNU Emacs 29.4 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.38,
> > cairo version 1.18.0) of 2024-06-24 built on dev
> > Windowing system distributor 'The X.Org Foundation', version 11.0.12302000
> > System Description: Ubuntu 23.10
> 
> I might be doing something wrong but I cannot reproduce on emacs-30,
> could you confirm?  29 is not under development anymore.

I can reproduce on master.  Be sure to invoke cperl-mode, and type
exactly the text the OP shows.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#72296; Package emacs. Full text available.

Message received at 72296 <at> debbugs.gnu.org:


Received: (at 72296) by debbugs.gnu.org; 25 Jul 2024 17:01:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 25 13:01:50 2024
Received: from localhost ([127.0.0.1]:37702 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sX1qg-0001Sw-JO
	for submit <at> debbugs.gnu.org; Thu, 25 Jul 2024 13:01:50 -0400
Received: from eggs.gnu.org ([209.51.188.92]:51578)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <acorallo@HIDDEN>) id 1sX1qd-0001Sj-I1
 for 72296 <at> debbugs.gnu.org; Thu, 25 Jul 2024 13:01:49 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <acorallo@HIDDEN>)
 id 1sX1qQ-0005J9-FW; Thu, 25 Jul 2024 13:01:34 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=X23AfP8OqTh1kJTeNzpQ2wNa5GvUGebcr1+9bPbS3l4=; b=jXHIboZSJ+zRqC5IM11v
 WZ55HkKBkdRXRgHY6JjUXS5nMHprte6n1j4SX9Z9yDmWgNEaLL6HiTxo5eTKe6cMyWbdGKW5bVND1
 qRTg4dMwldfQUnNJX66Yh7uMxM+bGX/37I40KFtPv5iH21Ek+xA1u0qV2t3NF4a0aKQPfgN6Dz44T
 /m6l7FpVr0hhfvuUwVlW4TnrUDjwjIVBu7d5X7zGoOVZ0+BtYucRJjamwi0plTlF6EPS0Dr9xARZa
 WK1ng3g/8AJNBIlgokxcYelG2c6KNTnVXetiaTQbXUk4m0uQhwlvscx8m/V8cugwrHs7vfzkIh5v8
 TCDC8ECSHri/ag==;
Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1)
 (envelope-from <acorallo@HIDDEN>)
 id 1sX1qM-0000vJ-Gz; Thu, 25 Jul 2024 13:01:34 -0400
From: Andrea Corallo <acorallo@HIDDEN>
To: brian <me@HIDDEN>
Subject: Re: bug#72296: 29.4; cperl-mode parsing error
In-Reply-To: <0c1147f0-9656-4860-ad58-dd1e24b75634@HIDDEN> (brian's
 message of "Thu, 25 Jul 2024 14:29:37 +0100")
References: <0c1147f0-9656-4860-ad58-dd1e24b75634@HIDDEN>
Date: Thu, 25 Jul 2024 13:01:30 -0400
Message-ID: <yp1ed7hpfrp.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 72296
Cc: 72296 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

brian <me@HIDDEN> writes:

> I started emacs using 'emacs -Q /tmp/some-empty-file.pl' and activated
> cperl mode by 'M-x cperl-mode'. I typed 'for (2..$n/2) {}' into the
> empty buffer and as soon as I pressed '/' there was an error message in
> the minibuffer
>
> End of =E2=80=98/ ... /=E2=80=99 string/RE not found: (scan-error Unbalan=
ced
> parentheses 11 38)
>
> and syntax hilighting was broken. Inserting a single space before '$'
> cleared the error and fixed the hilighting.
>
>
>
> In GNU Emacs 29.4 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.38,
> cairo version 1.18.0) of 2024-06-24 built on dev
> Windowing system distributor 'The X.Org Foundation', version 11.0.12302000
> System Description: Ubuntu 23.10

I might be doing something wrong but I cannot reproduce on emacs-30,
could you confirm?  29 is not under development anymore.

  Andrea




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#72296; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Jul 2024 16:50:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 25 12:50:46 2024
Received: from localhost ([127.0.0.1]:37686 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sX1fv-0001Ad-I9
	for submit <at> debbugs.gnu.org; Thu, 25 Jul 2024 12:50:46 -0400
Received: from lists.gnu.org ([209.51.188.17]:34018)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1sWyXd-0006P6-30
 for submit <at> debbugs.gnu.org; Thu, 25 Jul 2024 09:30:00 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1sWyXV-0004pp-5a
 for bug-gnu-emacs@HIDDEN; Thu, 25 Jul 2024 09:29:49 -0400
Received: from iguana.tulip.relay.mailchannels.net ([23.83.218.253])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1sWyXR-0001Cw-MR
 for bug-gnu-emacs@HIDDEN; Thu, 25 Jul 2024 09:29:48 -0400
X-Sender-Id: dreamhost|x-authsender|me@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id D20694C4185
 for <bug-gnu-emacs@HIDDEN>; Thu, 25 Jul 2024 13:29:41 +0000 (UTC)
Received: from pdx1-sub0-mail-a311.dreamhost.com (unknown [127.0.0.6])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id 6016E4C44AD
 for <bug-gnu-emacs@HIDDEN>; Thu, 25 Jul 2024 13:29:41 +0000 (UTC)
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1721914181; a=rsa-sha256;
 cv=none;
 b=q+uoVUTz0YbsWJ2eg/7ZgQ0xgVnaASWAdcn62pbebm6iCX7VQKVq4X2XpNDDD47dhGN4R9
 EPRgUjbiEKKyzWkRWncqTtmTT1OIXJC71xDkTw4smTNSsAzh4jwnpu8Diqvw9r/WrKjOcY
 Hz3jwju8EsskKmz6odksy8jub/yKUoxRmaWlnKg4WZlPdYgQ3BOgxX8ujZiBDVtzzmGr1X
 m7V443Lw98n0bV0h4ShiMeT/KECL3wjmLtqtbVxl0IuGinZTr1mffwG50W7/epBVR9goBT
 VtgEs9yCDPV52+IbKKS0fg0Sv6ncOk2R3erMG1lmRgT407OUNau5UbD1PRp89g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
 d=mailchannels.net; s=arc-2022; t=1721914181;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding:dkim-signature;
 bh=mNnnXFFwN2cVFMJ4fl+hw6MbX+1myDateDSFtJ6V/dk=;
 b=8wpGRitlNKYYXYtWw/jrp2U5u9qPNJjltHw1PBBJI9B0WdRJDDFDybMgvgghRjrd7Zuyai
 niJWyuJsDvFq3jI/CpQgBxYqXaQFGhnWg3THQldvYwWyBIxn2lWySyRubcsumKNMJFm80i
 p0liqu7t86XQoJCmLlnEhHgA1tCzUrg/aIm8ihSQOglVYapENAXiUQpILJhOlRuhDogaNg
 YBgrUs0g5cspLlFjBHeaiRU14JpVVAH0tJlar+Pp/9fpvIEqOENWuK8cI4Hdz1rBkuEsIt
 ae4VnIi6SjNI1vuH7moIp8UHtfquokk9yyuijuEq1QJ9pOZSrKAY82v0pLVy1Q==
ARC-Authentication-Results: i=1; rspamd-7d6b596b87-np5lk;
 auth=pass smtp.auth=dreamhost smtp.mailfrom=me@HIDDEN
X-Sender-Id: dreamhost|x-authsender|me@HIDDEN
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|me@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Little-Fumbling: 240276ba1d69efa7_1721914181617_3269319070
X-MC-Loop-Signature: 1721914181617:2426067425
X-MC-Ingress-Time: 1721914181617
Received: from pdx1-sub0-mail-a311.dreamhost.com (pop.dreamhost.com
 [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384)
 by 100.120.39.204 (trex/7.0.2); Thu, 25 Jul 2024 13:29:41 +0000
Received: from [192.168.136.246] (unknown [83.137.7.169])
 (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested)
 (Authenticated sender: me@HIDDEN)
 by pdx1-sub0-mail-a311.dreamhost.com (Postfix) with ESMTPSA id 4WVBZD5mHDzBT
 for <bug-gnu-emacs@HIDDEN>; Thu, 25 Jul 2024 06:29:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=briang.org;
 s=dreamhost; t=1721914181;
 bh=mNnnXFFwN2cVFMJ4fl+hw6MbX+1myDateDSFtJ6V/dk=;
 h=Date:To:Subject:From:Content-Type:Content-Transfer-Encoding;
 b=zlvUpfntLyqhUQszXjRJ0naMtQBRV2oIQuzjiKXE38c3RXsx5WFgI4cHC3eJoNnUQ
 mAvxwih0i2jGhDSIJ0VnQmxvixwfwcg7mr3JTSt84C7I5+95XW8l8k18H7ZgqgfrKa
 wWGtbjwoHfhCRwFnz8j1DszeFOq7jpyOhUmeFOojRsLSbBUvrQijZkLRDn+UVh8dVB
 4tS8bIEBwWh5At6R2G2TPInDH8C1v8iSPG8xkElenYFax2T3mL2uCaOvCOkVApJtya
 KaVOG140jnfcshh/SjTZnyb59RQWHuzWOa2RFG9FecJIcTftmBu0/CUy8vgjW5jVDY
 W2gCUgpiGWSpg==
Message-ID: <0c1147f0-9656-4860-ad58-dd1e24b75634@HIDDEN>
Date: Thu, 25 Jul 2024 14:29:37 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: bug-gnu-emacs@HIDDEN
Subject: 29.4; cperl-mode parsing error
Content-Language: en-US
From: brian <me@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=23.83.218.253; envelope-from=me@HIDDEN;
 helo=iguana.tulip.relay.mailchannels.net
X-Spam_score_int: 12
X-Spam_score: 1.2
X-Spam_bar: +
X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
 DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001,
 RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 2.2 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: I started emacs using 'emacs -Q /tmp/some-empty-file.pl' and
 activated cperl mode by 'M-x cperl-mode'. I typed 'for (2..$n/2) {}' into
 the empty buffer and as soon as I pressed '/' there was an error [...] 
 Content analysis details:   (2.2 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.9 SPF_FAIL               SPF: sender does not match SPF record (fail)
 [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=me%40briang.org;
 ip=209.51.188.17; r=debbugs.gnu.org]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 -2.3 RCVD_IN_DNSWL_MED      RBL: Sender listed at https://www.dnswl.org/,
 medium trust [209.51.188.17 listed in list.dnswl.org]
 3.6 RCVD_IN_SBL_CSS        RBL: Received via a relay in Spamhaus SBL-CSS
 [83.137.7.169 listed in zen.spamhaus.org]
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 25 Jul 2024 12:50:41 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  I started emacs using 'emacs -Q /tmp/some-empty-file.pl' and
    activated cperl mode by 'M-x cperl-mode'. I typed 'for (2..$n/2) {}' into
    the empty buffer and as soon as I pressed '/' there was an error [...] 
 
 Content analysis details:   (1.2 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -2.3 RCVD_IN_DNSWL_MED      RBL: Sender listed at https://www.dnswl.org/,
                             medium trust
                             [209.51.188.17 listed in list.dnswl.org]
  3.6 RCVD_IN_SBL_CSS        RBL: Received via a relay in Spamhaus SBL-CSS
                             [83.137.7.169 listed in zen.spamhaus.org]
  0.9 SPF_FAIL               SPF: sender does not match SPF record (fail)
 [SPF failed: Please see http://www.openspf.org/Why?s=mfrom;id=me%40briang.org;ip=209.51.188.17;r=debbugs.gnu.org]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager



I started emacs using 'emacs -Q /tmp/some-empty-file.pl' and activated
cperl mode by 'M-x cperl-mode'. I typed 'for (2..$n/2) {}' into the
empty buffer and as soon as I pressed '/' there was an error message in
the minibuffer

End of ‘/ ... /’ string/RE not found: (scan-error Unbalanced parentheses 
11 38)

and syntax hilighting was broken. Inserting a single space before '$'
cleared the error and fixed the hilighting.



In GNU Emacs 29.4 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.38,
cairo version 1.18.0) of 2024-06-24 built on dev
Windowing system distributor 'The X.Org Foundation', version 11.0.12302000
System Description: Ubuntu 23.10

Configured using:
'configure --prefix=/opt/emacs --with-cairo --with-libsystemd
--with-mailutils --with-native-compilation --with-pop=yes
--with-sound=alsa --with-toolkit-scroll-bars --with-x-toolkit=gtk3
--with-x=yes --without-gconf 'CFLAGS=-g -O2''

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG
SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP
X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB

Important settings:
value of $LANG: en_GB.UTF-8
value of $XMODIFIERS: @im=ibus
locale-coding-system: utf-8-unix

Major mode: CPerl

Minor modes in effect:
rainbow-delimiters-mode: t
global-hl-line-mode: t
savehist-mode: t
which-key-mode: t
marginalia-mode: t
vertico-mode: t
yas-global-mode: t
yas-minor-mode: t
global-flycheck-mode: t
flycheck-mode: t
global-display-fill-column-indicator-mode: t
display-fill-column-indicator-mode: t
global-display-line-numbers-mode: t
display-line-numbers-mode: t
override-global-mode: t
tooltip-mode: t
global-eldoc-mode: t
show-paren-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t

Load-path shadows:
/home/brian/.emacs.d/elpa/transient-20240603.2200/transient hides 
/opt/emacs/share/emacs/29.4/lisp/transient

Features:
(shadow sort mail-extr emacsbug message yank-media puny dired
dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config
gnus-util text-property-search mailabbrev gmm-utils mailheader sendmail
mail-utils mule-util orderless comp comp-cstr warnings cperl-mode
facemenu rainbow-delimiters hl-line savehist which-key move-text
org-tempo org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro
org-src ob-comint org-pcomplete pcomplete comint ansi-osc ring org-list
org-footnote org-faces org-entities time-date noutline outline
ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold
org-fold-core org-keys oc org-loaddefs cal-menu calendar cal-loaddefs
org-compat tempo org-version org-macs format-spec marginalia vertico
compat yasnippet-snippets yasnippet diminish flycheck ansi-color
find-func rx display-fill-column-indicator display-line-numbers
ef-dark-theme ef-themes cus-edit pp cus-load icons wid-edit edmacro
kmacro quelpa-use-package cl-extra quelpa mm-decode mm-bodies mm-encode
mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr
lisp-mnt help-fns radix-tree help-mode use-package use-package-ensure
use-package-delight use-package-diminish use-package-bind-key bind-key
easy-mmode use-package-core finder-inf all-the-icons-dired-autoloads
all-the-icons-autoloads auctex-autoloads tex-site avy-autoloads
cdlatex-autoloads corfu-autoloads diminish-autoloads ef-themes-autoloads
embark-consult-autoloads consult-autoloads embark-autoloads
flycheck-autoloads helpful-autoloads elisp-refs-autoloads jinx-autoloads
json-mode-autoloads keycast-autoloads logos-autoloads
magit-todos-autoloads magit-autoloads pcase git-commit-autoloads
hl-todo-autoloads f-autoloads async-autoloads marginalia-autoloads
markdown-mode-autoloads move-text-autoloads orderless-autoloads
org-modern-autoloads osm-autoloads pcre2el-autoloads pdf-tools-autoloads
perltidy-autoloads quelpa-use-package-autoloads quelpa-autoloads
rainbow-delimiters-autoloads realgud-autoloads
realgud-recursive-autoloads loc-changes-autoloads
load-relative-autoloads s-autoloads spacious-padding-autoloads
svg-lib-autoloads tablist-autoloads taxy-magit-section-autoloads
taxy-autoloads magit-section-autoloads dash-autoloads
test-simple-autoloads transient-autoloads treepy-autoloads
vertico-autoloads which-key-autoloads with-editor-autoloads info
compat-autoloads ws-butler-autoloads yaml-autoloads yaml-mode-autoloads
yasnippet-snippets-autoloads yasnippet-autoloads package browse-url url
url-proxy url-privacy url-expand url-methods url-history url-cookie
generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x
map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc
iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode lisp-mode prog-mode register
page tab-bar menu-bar rfn-eshadow isearch easymenu timer select
scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors
frame minibuffer nadvice seq simple cl-generic indonesian philippine
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote
threads dbusbind inotify dynamic-setting system-font-setting
font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty
make-network-process native-compile emacs)

Memory information:
((conses 16 507989 330210)
(symbols 48 28255 420)
(strings 32 141117 47270)
(string-bytes 1 4103290)
(vectors 16 44098)
(vector-slots 8 844183 452452)
(floats 8 157 942)
(intervals 56 373 368)
(buffers 984 12))





Acknowledgement sent to brian <me@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#72296; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 26 Jul 2024 10:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.