[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#33114: 25.2; Emacs hangs on closing a perenthesis in a regexp in cpe
From: |
Eli Zaretskii |
Subject: |
bug#33114: 25.2; Emacs hangs on closing a perenthesis in a regexp in cperl mode |
Date: |
Thu, 25 Oct 2018 17:59:10 +0300 |
> Date: Thu, 25 Oct 2018 13:21:17 +0200
> From: Vincent Lefevre <vincent@vinc17.net>
> Cc: 33114@debbugs.gnu.org
>
> > > 1. Open it with "emacs -Q".
> > > 2. Put the cursor just after the opening parenthesis.
> > > 3. Type ')' (closing parenthesis).
> > >
> > > This makes Emacs hang. A C-g alone has no effect. Several C-g in a row
> > > may give the control back to the user.
> >
> > Does the patch below produce good results? (I don't use CPerl mode,
> > so I don't know if the highlighting after the change is correct.)
>
> Thanks, this solves the hang problem, and the highlighting still
> seems to be correct.
Thanks, pushed to the emacs-26 branch.
> Note that there is still a bug: I get an error
>
> End of ‘s/ ... // ... /’ string/RE not found: (scan-error Unbalanced
> parentheses 26 29)
>
> but I already got this error without the patch under conditions
Yes, I think this is a separate issue.