unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Harald Jörg" <haj@posteo.de>
To: Patrick Goldmann <patrick.goldmann@gmail.com>
Cc: 70948@debbugs.gnu.org
Subject: bug#70948: 29.3; cperl mode hangs on comments like "#___"
Date: Tue, 14 May 2024 22:34:51 +0000	[thread overview]
Message-ID: <87cypoc99w.fsf@oook.m.uunet.de> (raw)
In-Reply-To: <CAMQVTgUjTJBB8FsPbFKuMkADoB0oiXP4vA+vYTPmF+jhMgM6Jg@mail.gmail.com> (Patrick Goldmann's message of "Tue, 14 May 2024 21:38:22 +0200")

tags 70948 confirmed
owner 70948 !
thanks

Patrick Goldmann <patrick.goldmann@gmail.com> writes:

> 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

Ok, I can reproduce it:  I see a delay starting after ~20 underscores
and getting quickly worse as more underscores are added.  My first bet
would be some exponential regexp backtracking.

The slowdown does not happen with Emacs built from the repository under
Linux, nor with Emacs 28.2 under Windows.  I need to run more variations
to narrow it down.
--
Cheers,
haj





  reply	other threads:[~2024-05-14 22:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-14 16:35 bug#70948: 29.3; cperl mode hangs on comments like "#___" Patrick Goldmann
2024-05-14 17:55 ` Eli Zaretskii
2024-05-14 18:20 ` Harald Jörg
2024-05-14 18:46   ` Patrick Goldmann
2024-05-14 19:38     ` Patrick Goldmann
2024-05-14 22:34       ` Harald Jörg [this message]
2024-05-15 21:54         ` Harald Jörg
2024-05-16  8:19           ` Eli Zaretskii
2024-05-16 16:43             ` Harald Jörg
2024-05-16 18:22               ` Eli Zaretskii
2024-05-16 21:00       ` Harald Jörg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87cypoc99w.fsf@oook.m.uunet.de \
    --to=haj@posteo.de \
    --cc=70948@debbugs.gnu.org \
    --cc=patrick.goldmann@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).