From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs 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 Message-ID: <83mur2qdhd.fsf@gnu.org> References: <87efcix1cy.fsf@zira.vinc17.org> <83r2ggsna8.fsf@gnu.org> <20181025112117.GC13505@cventin.lip.ens-lyon.fr> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1540482750 3750 195.159.176.226 (25 Oct 2018 15:52:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 25 Oct 2018 15:52:30 +0000 (UTC) Cc: 33114-done@debbugs.gnu.org To: Vincent Lefevre Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 25 17:52:26 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFhvu-0000qe-Eu for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Oct 2018 17:52:26 +0200 Original-Received: from localhost ([::1]:55312 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFhy1-00013t-0C for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Oct 2018 11:54:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFh7H-0006j9-G1 for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 11:00:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFh7D-0003AG-6C for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 11:00:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38266) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gFh7C-00039o-QI for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 11:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gFh7C-00053X-Ph for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 11:00:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Oct 2018 15:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 33114 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 33114@debbugs.gnu.org, eliz@gnu.org, vincent@vinc17.net Original-Received: via spool by 33114-done@debbugs.gnu.org id=D33114.154047956619357 (code D ref 33114); Thu, 25 Oct 2018 15:00:02 +0000 Original-Received: (at 33114-done) by debbugs.gnu.org; 25 Oct 2018 14:59:26 +0000 Original-Received: from localhost ([127.0.0.1]:42523 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFh6c-000529-EE for submit@debbugs.gnu.org; Thu, 25 Oct 2018 10:59:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFh6a-00051w-RZ for 33114-done@debbugs.gnu.org; Thu, 25 Oct 2018 10:59:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFh6Q-0002XL-5q for 33114-done@debbugs.gnu.org; Thu, 25 Oct 2018 10:59:17 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFh6P-0002X5-VT; Thu, 25 Oct 2018 10:59:14 -0400 Original-Received: from [176.228.60.248] (port=2766 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gFh6O-0002w4-Tw; Thu, 25 Oct 2018 10:59:13 -0400 In-reply-to: <20181025112117.GC13505@cventin.lip.ens-lyon.fr> (message from Vincent Lefevre on Thu, 25 Oct 2018 13:21:17 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:151599 Archived-At: > Date: Thu, 25 Oct 2018 13:21:17 +0200 > From: Vincent Lefevre > 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.