From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Harald =?UTF-8?Q?J=C3=B6rg?= Newsgroups: gmane.emacs.bugs Subject: bug#70948: 29.3; cperl mode hangs on comments like "#___" Date: Thu, 16 May 2024 16:43:24 +0000 Message-ID: <874jaxhfmb.fsf@oook.m.uunet.de> References: <87zfsscl1r.fsf@oook.m.uunet.de> <87cypoc99w.fsf@oook.m.uunet.de> <87v83evizl.fsf@oook.m.uunet.de> <86a5kqjhj4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3315"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70948@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 16 18:44:26 2024 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 1s7eDS-0000fa-Qo for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 May 2024 18:44:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7eD3-0007nm-Ts; Thu, 16 May 2024 12:44:01 -0400 Original-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 ) id 1s7eD2-0007nb-CA for bug-gnu-emacs@gnu.org; Thu, 16 May 2024 12:44:00 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s7eD2-0008MV-4B for bug-gnu-emacs@gnu.org; Thu, 16 May 2024 12:44:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s7eD4-0000mE-1B for bug-gnu-emacs@gnu.org; Thu, 16 May 2024 12:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Harald =?UTF-8?Q?J=C3=B6rg?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 May 2024 16:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70948 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 70948-submit@debbugs.gnu.org id=B70948.17158778202963 (code B ref 70948); Thu, 16 May 2024 16:44:02 +0000 Original-Received: (at 70948) by debbugs.gnu.org; 16 May 2024 16:43:40 +0000 Original-Received: from localhost ([127.0.0.1]:49779 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7eCi-0000lj-9S for submit@debbugs.gnu.org; Thu, 16 May 2024 12:43:40 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:49337) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7eCc-0000lb-In for 70948@debbugs.gnu.org; Thu, 16 May 2024 12:43:38 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 69A95240103 for <70948@debbugs.gnu.org>; Thu, 16 May 2024 18:43:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1715877806; bh=NZQFsIrQMrSIKNoU4zFSh2lSJSpO8rwxXAfdMSNTFIk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=RM3W/dMubdASGycdsNcKYafpdbMvvny3LRBY08ufYF+2o7hoaGgowAeu4J46m9hTz 4ORWZQf+ZzO/LqcJcxxvb1KkURp0spX6kYsZAI2mz7fTee2mRGhbQ7u186i8SNOuxa gw+fQRR7JoLD4RR7QiHCIkTlVOkfbqKx/mENAeRnk9RPHqjmcstJM5ibBskPKdXwH/ CqiAit4uAZkr/ew3G+P94/5t1jzolupWB7YvoUNsaFY9SIQ2tIth4zjr1CXcxTFLKt oYN3N2aSAXkETBfr3ikmhpcvgpmNr6XgyFGvD3PDv4MPcNV9fIHi/NyFVp9tOkagWo IguCp41BALTzg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VgGB53dxjz6tvJ; Thu, 16 May 2024 18:43:25 +0200 (CEST) In-Reply-To: <86a5kqjhj4.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 16 May 2024 11:19:11 +0300") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:285173 Archived-At: Eli Zaretskii writes: > Please note that, barring any unforeseen emergencies, there will be no > more Emacs 29.x releases. So I'm not sure the effort of making the > emacs-29 branch behave better in this matter is justified. I understand! My suggested course of action would be like this: 1) Make cperl-mode.el from the master branch work with older Emacsen (again). This needs a one-line fix. 2) Work around the inefficient rx expansion in the master branch. This seems to be another one-line fix in which I replace a rx sequence by the expansion it gets in master (explanatory comment omitted here): (defconst cperl--basic-identifier-rx - '(sequence (or alpha "_") (* (or word "_"))) + '(regex "[_[:alpha:]][_[:word:]]*")) 3) Close the bug report, noting it has already been fixed in master. Explain that users can use cperl-mode.el from the repository as a drop-in replacement in Emacs 27 or newer if they are affected by the bug. Current "stable" Linux distributions ship with Emacs 28 (Debian bookworm) or Emacs 29 (Ubuntu Noble Numbat). It won't happen too often, nevertheless I find it unsettling that Emacs would freeze beyond repair when opening files with a line of underscores. On a related note, Perl 5.40 will be released this month. The new syntax will be added to cperl-mode.el in the master branch, and Perlers who want current syntax to be recognized seen to have developed the habit to pick cperl-mode.el from git. Such things will run very smooth once we find a way to publish cperl-mode in ELPA (but keep it in the Emacs repository, of course). -- Cheers, haj