Subject: bug#16368: 24.3; freeze in cperl mode when editing a regexp

From: Stefan Kangas <[email-masked]>
Date: Sat, 21 Sep 2019 01:33:08 +0200

Vincent Lefevre <[email-masked]> writes:

> Open a file in cperl mode containing the following line:
>
>   /(\d{4})(?: +){2}/;
>
> e.g.: "emacs -Q file" then M-x cperl-mode <RET>
>
> Put the cursor over the second opening brace, and type <DEL>
> several times to delete what is before "{2}". When one types
> <DEL> at this point:
>
>   /(\d{4})(?:{2}/;
>              ^cursor
>
> Emacs freezes. One can type C-g to interrupt.

I can confirm this is still an issue in Emacs 26.1 and on the current
master branch.

Best regards,
Stefan Kangas