GNU bug report logs -
#33114
25.2; Emacs hangs on closing a parenthesis in a regexp in cperl mode
Previous Next
Reported by: Vincent Lefevre <vincent <at> vinc17.net>
Date: Mon, 22 Oct 2018 00:43:01 UTC
Severity: normal
Found in version 25.2
Fixed in version 26.2
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #10 received at 33114 <at> debbugs.gnu.org (full text, mbox):
In article <mailman.2564.1540168987.1284.bug-gnu-emacs <at> gnu.org> you wrote:
> Consider the following file:
> # -*- mode: cperl -*-
> s/./(/e;
> 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.
I tried this in Emacs 25.2 -Q under Gentoo. I haven't yet been able to
reproduce the error. Instead, on typing the ), I get the error message:
End of `s/ ... // ... /' string/RE not found: (scan-error Unbalanced parentheses 29 32)
. Maybe something in your Emacs build configuration is clashing with
something in cperl mode.
> Tested under Debian/unstable.
> In GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
> of 2018-07-11, modified by Debian built on x86-ubc-01
> Windowing system distributor 'The X.Org Foundation', version 11.0.12001000
> System Description: Debian GNU/Linux stable-updates (sid)
--
Alan Mackenzie (Nuremberg, Germany).
This bug report was last modified 6 years and 138 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.