unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Vincent Lefevre <vincent@vinc17.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 33114@debbugs.gnu.org
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	[thread overview]
Message-ID: <20181025112117.GC13505@cventin.lip.ens-lyon.fr> (raw)
In-Reply-To: <83r2ggsna8.fsf@gnu.org>

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 <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)





  reply	other threads:[~2018-10-25 11:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-22  0:37 bug#33114: 25.2; Emacs hangs on closing a perenthesis in a regexp in cperl mode Vincent Lefevre
     [not found] ` <mailman.2564.1540168987.1284.bug-gnu-emacs@gnu.org>
2018-10-23 14:46   ` Alan Mackenzie
2018-10-23 15:19 ` Eli Zaretskii
2018-10-25 11:21   ` Vincent Lefevre [this message]
2018-10-25 14:59     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181025112117.GC13505@cventin.lip.ens-lyon.fr \
    --to=vincent@vinc17.net \
    --cc=33114@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).