GNU bug report logs - #16368
24.3; freeze in cperl mode when editing a regexp

Previous Next

Package: emacs;

Reported by: Vincent Lefevre <vincent <at> vinc17.net>

Date: Mon, 6 Jan 2014 01:30:02 UTC

Severity: normal

Tags: confirmed, patch

Found in versions 26.1, 24.3

Fixed in version 28.1

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #15 received at 16368 <at> debbugs.gnu.org (full text, mbox):

From: Harald Jörg <haj <at> posteo.de>
To: 16368 <at> debbugs.gnu.org
Subject: [PATCH] cperl-mode: don't freeze over a cool regexp
Date: Wed, 2 Sep 2020 22:06:40 +0200
[Message part 1 (text/plain, inline)]
That bug exists since 14 years, but only surfaces if the regexp has a
closing brace in the wrong place (two characters before an unfinished
group starts).  The reason is that `cperl-forward-group-in-re' failed
to report unbalanced parentheses: In the function, the error was too
narrowly localized and gets lost before returning.

Patch attached, including two test cases.
-- 
Cheers,
haj
[0001-2020-09-02-Harald-J-rg-haj-posteo.de.patch (text/x-patch, attachment)]

This bug report was last modified 4 years and 311 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.