From unknown Wed Jun 18 00:22:48 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#33114 <33114@debbugs.gnu.org> To: bug#33114 <33114@debbugs.gnu.org> Subject: Status: 25.2; Emacs hangs on closing a parenthesis in a regexp in cperl mode Reply-To: bug#33114 <33114@debbugs.gnu.org> Date: Wed, 18 Jun 2025 07:22:48 +0000 retitle 33114 25.2; Emacs hangs on closing a parenthesis in a regexp in cpe= rl mode reassign 33114 emacs submitter 33114 Vincent Lefevre severity 33114 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 21 20:42:17 2018 Received: (at submit) by debbugs.gnu.org; 22 Oct 2018 00:42:17 +0000 Received: from localhost ([127.0.0.1]:34907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gEOIT-00018u-6K for submit@debbugs.gnu.org; Sun, 21 Oct 2018 20:42:17 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44681) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gEOIR-00018i-Fy for submit@debbugs.gnu.org; Sun, 21 Oct 2018 20:42:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gEOIL-0000gy-6A for submit@debbugs.gnu.org; Sun, 21 Oct 2018 20:42:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44562) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gEOIL-0000gl-2a for submit@debbugs.gnu.org; Sun, 21 Oct 2018 20:42:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gEOIG-0001UF-W5 for bug-gnu-emacs@gnu.org; Sun, 21 Oct 2018 20:42:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gEOEB-0006ly-Ua for bug-gnu-emacs@gnu.org; Sun, 21 Oct 2018 20:37:55 -0400 Received: from joooj.vinc17.net ([155.133.131.76]:40760) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gEOEB-0006lP-Kk for bug-gnu-emacs@gnu.org; Sun, 21 Oct 2018 20:37:51 -0400 Received: from smtp-zira.vinc17.net (2a02-8429-80cd-3101-328d-99ff-fe25-ad3f.rev.sfr.net [IPv6:2a02:8429:80cd:3101:328d:99ff:fe25:ad3f]) by joooj.vinc17.net (Postfix) with ESMTPSA id 0B1C49D; Mon, 22 Oct 2018 02:37:50 +0200 (CEST) Received: by zira.vinc17.org (Postfix, from userid 1000) id AA4EEC201B6; Mon, 22 Oct 2018 02:37:49 +0200 (CEST) From: Vincent Lefevre To: bug-gnu-emacs@gnu.org Subject: 25.2; Emacs hangs on closing a perenthesis in a regexp in cperl mode Date: Mon, 22 Oct 2018 02:37:49 +0200 Message-ID: <87efcix1cy.fsf@zira.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) 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. 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) Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs25-cfFROJ/emacs25-25.2+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LC_COLLATE: POSIX value of $LC_CTYPE: en_US.UTF-8 value of $LC_TIME: en_DK value of $LANG: POSIX locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: display-time-mode: t show-paren-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Loading cjk-enc...done Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...done Loading /etc/emacs/site-start.d/50latex-cjk-thai.el (source)...done Loading /etc/emacs/site-start.d/50psvn.el (source)...done Loading /etc/emacs/site-start.d/50python-docutils.el (source)...done Loading /etc/emacs/site-start.d/50texlive-lang-english.el (source)...done Loading /etc/emacs/site-start.d/50why3.el (source)...done Loading /home/vinc17/share/emacs/site-lisp/mutteditor.el (source)...done Loading time...done For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: /usr/share/emacs/25.2/site-lisp/why3 hides /usr/share/emacs/site-lisp/why3 /usr/share/emacs/25.2/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs25/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/25.2/lisp/textmodes/rst /usr/share/emacs25/site-lisp/latex-cjk-thai/thai-word hides /usr/share/emacs/25.2/lisp/language/thai-word Features: (shadow sort mail-extr warnings emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu mail-prsvr mail-utils time cus-start cus-load paren cc-styles cc-align cc-engine cc-vars cc-defs edmacro kmacro cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 107238 7863) (symbols 48 22452 0) (miscs 40 54 113) (strings 32 20694 3424) (string-bytes 1 601857) (vectors 16 12880) (vector-slots 8 443130 2641) (floats 8 171 162) (intervals 56 266 0) (buffers 976 18)) From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 21 21:04:43 2018 Received: (at control) by debbugs.gnu.org; 22 Oct 2018 01:04:43 +0000 Received: from localhost ([127.0.0.1]:34912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gEOeB-0001fD-9H for submit@debbugs.gnu.org; Sun, 21 Oct 2018 21:04:43 -0400 Received: from joooj.vinc17.net ([155.133.131.76]:59108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gEOe9-0001f4-0G for control@debbugs.gnu.org; Sun, 21 Oct 2018 21:04:41 -0400 Received: from smtp-zira.vinc17.net (128.119.75.86.rev.sfr.net [86.75.119.128]) by joooj.vinc17.net (Postfix) with ESMTPSA id 65F2C9D; Mon, 22 Oct 2018 03:04:39 +0200 (CEST) Received: by zira.vinc17.org (Postfix, from userid 1000) id 36488C2008A; Mon, 22 Oct 2018 03:04:39 +0200 (CEST) Date: Mon, 22 Oct 2018 03:04:39 +0200 From: Vincent Lefevre To: control@debbugs.gnu.org Subject: Re: 25.2; Emacs hangs on closing a perenthesis in a regexp in cperl mode Message-ID: <20181022010439.GA12206@zira.vinc17.org> References: <87efcix1cy.fsf@zira.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87efcix1cy.fsf@zira.vinc17.org> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.10.1+136 (420226ce) vl-108074 (2018-10-17) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) retitle 33114 25.2; Emacs hangs on closing a parenthesis in a regexp in cperl mode From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 23 10:46:30 2018 Received: (at 33114) by debbugs.gnu.org; 23 Oct 2018 14:46:30 +0000 Received: from localhost ([127.0.0.1]:38374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gExwz-0000L7-SW for submit@debbugs.gnu.org; Tue, 23 Oct 2018 10:46:30 -0400 Received: from colin.muc.de ([193.149.48.1]:44405 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1gExwv-0000Kr-Co for 33114@debbugs.gnu.org; Tue, 23 Oct 2018 10:46:28 -0400 Received: (qmail 10736 invoked by uid 3782); 23 Oct 2018 14:46:24 -0000 Date: 23 Oct 2018 14:46:24 -0000 Message-ID: <20181023144624.10735.qmail@mail.muc.de> From: Alan Mackenzie To: Vincent Lefevre Subject: Re: bug#33114: 25.2; Emacs hangs on closing a perenthesis in a regexp in cperl mode Organization: muc.de e.V. In-Reply-To: X-Newsgroups: gnu.emacs.bug User-Agent: tin/2.4.2-20171224 ("Lochhead") (UNIX) (FreeBSD/11.2-RELEASE-p4 (amd64)) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 33114 Cc: acm@muc.de, 33114@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) In article 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). From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 23 11:20:21 2018 Received: (at 33114) by debbugs.gnu.org; 23 Oct 2018 15:20:21 +0000 Received: from localhost ([127.0.0.1]:38390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gEyTk-00019x-V7 for submit@debbugs.gnu.org; Tue, 23 Oct 2018 11:20:21 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52995) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gEyTj-00019k-4O for 33114@debbugs.gnu.org; Tue, 23 Oct 2018 11:20:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gEyTZ-0007Pn-PF for 33114@debbugs.gnu.org; Tue, 23 Oct 2018 11:20:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gEyTZ-0007PP-Jk; Tue, 23 Oct 2018 11:20:09 -0400 Received: from [176.228.60.248] (port=4909 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gEyTZ-0001dU-6w; Tue, 23 Oct 2018 11:20:09 -0400 Date: Tue, 23 Oct 2018 18:19:59 +0300 Message-Id: <83r2ggsna8.fsf@gnu.org> From: Eli Zaretskii To: Vincent Lefevre In-reply-to: <87efcix1cy.fsf@zira.vinc17.org> (message from Vincent Lefevre on Mon, 22 Oct 2018 02:37:49 +0200) Subject: Re: bug#33114: 25.2; Emacs hangs on closing a perenthesis in a regexp in cperl mode References: <87efcix1cy.fsf@zira.vinc17.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33114 Cc: 33114@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Vincent Lefevre > Date: Mon, 22 Oct 2018 02:37:49 +0200 > > > 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. 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. --- lisp/progmodes/cperl-mode.el~0 2018-06-11 06:32:21.000000000 +0300 +++ lisp/progmodes/cperl-mode.el 2018-10-23 18:02:06.924582600 +0300 @@ -8786,7 +8786,7 @@ (goto-char new-beg))) (setq beg (point)) (goto-char end) - (while (and end + (while (and end (< end (point-max)) (progn (or (bolp) (condition-case nil (forward-line 1) From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 25 07:21:21 2018 Received: (at 33114) by debbugs.gnu.org; 25 Oct 2018 11:21:21 +0000 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 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 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 Date: Thu, 25 Oct 2018 13:21:17 +0200 From: Vincent Lefevre To: Eli Zaretskii Subject: Re: bug#33114: 25.2; Emacs hangs on closing a perenthesis in a regexp in cperl mode Message-ID: <20181025112117.GC13505@cventin.lip.ens-lyon.fr> References: <87efcix1cy.fsf@zira.vinc17.org> <83r2ggsna8.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <83r2ggsna8.fsf@gnu.org> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.10.1+136 (420226ce) vl-108074 (2018-10-17) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 33114 Cc: 33114@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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) From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 25 10:59:26 2018 Received: (at 33114-done) by debbugs.gnu.org; 25 Oct 2018 14:59:26 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 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 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 Date: Thu, 25 Oct 2018 17:59:10 +0300 Message-Id: <83mur2qdhd.fsf@gnu.org> From: Eli Zaretskii To: Vincent Lefevre In-reply-to: <20181025112117.GC13505@cventin.lip.ens-lyon.fr> (message from Vincent Lefevre on Thu, 25 Oct 2018 13:21:17 +0200) Subject: Re: bug#33114: 25.2; Emacs hangs on closing a perenthesis in a regexp in cperl mode References: <87efcix1cy.fsf@zira.vinc17.org> <83r2ggsna8.fsf@gnu.org> <20181025112117.GC13505@cventin.lip.ens-lyon.fr> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33114-done Cc: 33114-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > 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. From unknown Wed Jun 18 00:22:48 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 23 Nov 2018 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 03 17:11:48 2019 Received: (at control) by debbugs.gnu.org; 3 Jan 2019 22:11:48 +0000 Received: from localhost ([127.0.0.1]:46051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfBDO-0001w9-I8 for submit@debbugs.gnu.org; Thu, 03 Jan 2019 17:11:48 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41357) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfBDM-0001w1-FE for control@debbugs.gnu.org; Thu, 03 Jan 2019 17:11:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfBDL-0005vi-Nn for control@debbugs.gnu.org; Thu, 03 Jan 2019 17:11:44 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53671) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfBDL-0005vc-KZ for control@debbugs.gnu.org; Thu, 03 Jan 2019 17:11:43 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1gfBDL-0002e8-FK for control@debbugs.gnu.org; Thu, 03 Jan 2019 17:11:43 -0500 Subject: control message for bug 33114 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Thu, 03 Jan 2019 17:11:43 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) unarchive 33114 fixed 33114 26.2 From unknown Wed Jun 18 00:22:48 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 01 Feb 2019 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator