From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Vincent Lefevre 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 13:21:17 +0200 Message-ID: <20181025112117.GC13505@cventin.lip.ens-lyon.fr> References: <87efcix1cy.fsf@zira.vinc17.org> <83r2ggsna8.fsf@gnu.org> 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 1540467141 8003 195.159.176.226 (25 Oct 2018 11:32:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 25 Oct 2018 11:32:21 +0000 (UTC) User-Agent: Mutt/1.10.1+136 (420226ce) vl-108074 (2018-10-17) Cc: 33114@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 25 13:32:17 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 1gFds8-0001zj-Lo for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Oct 2018 13:32:16 +0200 Original-Received: from localhost ([::1]:53870 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFduF-0001Oy-39 for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Oct 2018 07:34:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFdsB-0007b4-K6 for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 07:32:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFdiE-0006mn-DT for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 07:22:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36985) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gFdiD-0006lz-Tv for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 07:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gFdiD-00067v-Jg for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 07:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vincent Lefevre Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Oct 2018 11:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33114 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33114-submit@debbugs.gnu.org id=B33114.154046648123489 (code B ref 33114); Thu, 25 Oct 2018 11:22:01 +0000 Original-Received: (at 33114) by debbugs.gnu.org; 25 Oct 2018 11:21:21 +0000 Original-Received: from localhost ([127.0.0.1]:41243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFdhY-00066n-QH for submit@debbugs.gnu.org; Thu, 25 Oct 2018 07:21:20 -0400 Original-Received: from cventin.lip.ens-lyon.fr ([140.77.13.17]:40126) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFdhW-00066f-Nj for 33114@debbugs.gnu.org; Thu, 25 Oct 2018 07:21:19 -0400 Original-Received: from vlefevre by cventin.lip.ens-lyon.fr with local (Exim 4.91) (envelope-from ) id 1gFdhV-0004LR-HN; Thu, 25 Oct 2018 13:21:17 +0200 Content-Disposition: inline In-Reply-To: <83r2ggsna8.fsf@gnu.org> X-Mailer-Info: https://www.vinc17.net/mutt/ 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:151593 Archived-At: On 2018-10-23 18:19:59 +0300, Eli Zaretskii wrote: > > # -*- 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. > > 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. 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 with which Emacs did not hang, e.g. with: s/./(/; (i.e. without the 'e'). -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)