From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Patrick Goldmann Newsgroups: gmane.emacs.bugs Subject: bug#70948: 29.3; cperl mode hangs on comments like "#___" Date: Tue, 14 May 2024 21:38:22 +0200 Message-ID: References: <87zfsscl1r.fsf@oook.m.uunet.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000acedbf06186f2561" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9793"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70948@debbugs.gnu.org To: Harald =?UTF-8?Q?J=C3=B6rg?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 14 21:40:27 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 1s6y0h-0002IG-My for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 May 2024 21:40:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s6y0J-00047U-Sn; Tue, 14 May 2024 15:40:03 -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 1s6y0H-00046o-Fw for bug-gnu-emacs@gnu.org; Tue, 14 May 2024 15:40:01 -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 1s6y0H-0002UJ-6w for bug-gnu-emacs@gnu.org; Tue, 14 May 2024 15:40:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s6y0I-0004CR-4B for bug-gnu-emacs@gnu.org; Tue, 14 May 2024 15:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Patrick Goldmann Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 May 2024 19:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70948 X-GNU-PR-Package: emacs Original-Received: via spool by 70948-submit@debbugs.gnu.org id=B70948.171571558516128 (code B ref 70948); Tue, 14 May 2024 19:40:02 +0000 Original-Received: (at 70948) by debbugs.gnu.org; 14 May 2024 19:39:45 +0000 Original-Received: from localhost ([127.0.0.1]:41074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6xzz-0004C4-FG for submit@debbugs.gnu.org; Tue, 14 May 2024 15:39:45 -0400 Original-Received: from mail-yw1-f181.google.com ([209.85.128.181]:43447) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6xzv-0004Bx-Ov for 70948@debbugs.gnu.org; Tue, 14 May 2024 15:39:42 -0400 Original-Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-61e0c2b5cd2so47980217b3.1 for <70948@debbugs.gnu.org>; Tue, 14 May 2024 12:39:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715715513; x=1716320313; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=c+lWR8L4KddgxvCkv5BAEYm77Jly5sgBJSYWyx8dLMM=; b=I218JqJksvwQFVQWjxUZsIIe0sMXhZe7jXRhv5gSGaDN3PS8Y/rtxC9KihwNP9iq7i tGMUTs/QA/DjykMbY0ucITZXNVEKOFe8tuPXI6G3AFU1TMRP/g37Slbsj9MVcLzTRi+7 w+wAE1qtp7slunYZ8gdxkhe6s9jbt60KhW8g/VernTygnLW96cPXK4KRpjwRp6RBOeOi PzsPmkGl0NyyVh6yO+G+YG5Hrf48VD6G0MKREHCCi5opYbJd/w9WNjOmBPTYYx8TrEdS z6lVA/tMgAy3iqSdjQ6W8I9/+oV9tww6DEQcQEYg+qdAdXICrvt1jQwTvTsM6CvPUPMA Vu/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715715513; x=1716320313; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=c+lWR8L4KddgxvCkv5BAEYm77Jly5sgBJSYWyx8dLMM=; b=u+DdPWp1aM0A7MmNvO0SE6Zb9FP1Oy+S6O+O0LHweUkN0DNnj275+R9I/Ci/lXBGvm 87XRt2KKB/VD+af85zfyn/kngBMfF393aSACmOPIlrysNgE3d1Ouknl7eAtUm8fzbuhX qbBiTDw+8ZeTVVbppQ9QRWGB4Oueqr7BONLRKhWrTNlzHa/CS3URC+Ab20gyAkro1f+o b6EWB8QRzFIVpt/aZNj0Eqk+Zob292ERgV4RT+RG9uqgvVqD35ksp3vYcd1VJ7yWJNhC kGeJPSIu+Nf5vZ7OpRQN5Fd2E/mD4T8q+SgyLEyotag63+7+Ef2FvIPSEqIKhYUvZhf3 tslw== X-Gm-Message-State: AOJu0YyBw92wzQPTySp4dgVsW+3eDO2sOHR9toPo5iNg391vcpsSagjI 8Mr1mjhgd6rTJObRZoJSvt3CmBl1FLlWXJhyaVEvY300nONsSaw0mg6sBFnp+FZvTNvNpvMIDbn YBiAhIy5ZtQfTrlkAYA5YJa/jC+0= X-Google-Smtp-Source: AGHT+IGEWAsJ7Tlvv/anNVkzFD3wmzuQbRG7G9/Fwmlx9i/MxGDXGeydJisMy8XKd4TckAUTn16nlBjJscJPlBrcjZY= X-Received: by 2002:a0d:cb54:0:b0:61b:106:52d1 with SMTP id 00721157ae682-622af7aeecdmr105046607b3.4.1715715512788; Tue, 14 May 2024 12:38:32 -0700 (PDT) In-Reply-To: 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:285044 Archived-At: --000000000000acedbf06186f2561 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This was bugging me, so I played around with it a bit more. It seems this has nothing to do at all with version control etc, but with the number of underscores. I could reproduce it on my private machine with a clean emacs 29.3 install by: - C-x C-f foo.pl - M-x cperl-mode - just keeping underscore pressed Emacs will slow down eventually and then hang. Haven't waited long enough to see if it recovers. Hope this helps. On Tue, May 14, 2024 at 8:46=E2=80=AFPM Patrick Goldmann wrote: > Just got home and tried to reproduce this on my private machine, it worke= d > just fine. > > So I guess this is something on my work machine, maybe version control > related or something. > Still strange this happened while running emacs -Q. > > I can try your file tomorrow, but my guess is if I drop this into one of > my project directories it won't work. > I'll try it outside of version controlled directories, too, and provide a= n > example file. > > But if it turns out this is somehow related to version control or > something else in my project tree, this will be hard to debug and might n= ot > even be directly related to cperl-mode at all :( > > On Tue, May 14, 2024 at 8:20=E2=80=AFPM Harald J=C3=B6rg = wrote: > >> Patrick Goldmann writes: >> >> > While trying to open files (with cperl-mode, perl-mode works) >> > containing comments of this sort, emacs hangs. >> >> Unfortunately I can not reproduce this. I tried on Windows with exactly >> the same Emacs version with the attached file, and it works as expected. >> >> Can you pleas try this file, and provide a file where Emacs hanvs? >> -- >> Cheers, >> haj >> >> --000000000000acedbf06186f2561 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This was bugging me, so I played around with it a bit= more.

It seems this has nothing to do at all with= version control etc, but with the number of underscores.

I could reproduce it on my private machine with a clean emacs 29.3 = install by:
- C-x C-f foo.pl
<= div>- M-x cperl-mode
- just keeping underscore pressed
=
Emacs will slow down eventually and then hang. Haven't w= aited long enough to see if it recovers.

Hope this= helps.

On Tue, May 14, 2024 at 8:46=E2=80=AFPM Patrick Goldmann &= lt;patrick.goldmann@gmail.com= > wrote:
=
Just got home and tried to reproduce this on my priva= te machine, it worked just fine.

So I guess this i= s something on my work machine, maybe version control related or something.=
Still strange this happened while running emacs -Q.

I can try your file tomorrow, but my guess is if I drop th= is into one of my project directories it won't work.
I= 9;ll try it outside of version controlled directories, too, and provide an = example file.

But if it turns out this is somehow = related to version control or something else in my project tree, this will = be hard to debug and might not even be directly related to cperl-mode at al= l :(

On Tue, May 14, 2024 at 8:20=E2=80=AFPM Harald J=C3=B6rg &l= t;haj@posteo.de> = wrote:
Patrick G= oldmann <patrick.goldmann@gmail.com> writes:

> While trying to open files (with cperl-mode, perl-mode works)
> containing comments of this sort, emacs hangs.

Unfortunately I can not reproduce this.=C2=A0 I tried on Windows with exact= ly
the same Emacs version with the attached file, and it works as expected.
Can you pleas try this file, and provide a file where Emacs hanvs?
--
Cheers,
haj

--000000000000acedbf06186f2561--