GNU bug report logs - #17509
23.4; bug with regexp in java-mode

Previous Next

Package: emacs;

Reported by: Francesco Potortì <Potorti <at> isti.cnr.it>

Date: Fri, 16 May 2014 15:37:01 UTC

Severity: minor

Tags: notabug

Found in version 23.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Francesco Potortì <pot <at> gnu.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 17509 <at> debbugs.gnu.org
Subject: bug#17509: 23.4; bug with regexp in java-mode
Date: Fri, 16 May 2014 17:48:18 -0400
>>> (setq defun-prompt-regexp "\\(class\\|/\\*\\*\\)[^{]*")
>> Why is this an Emacs bug, and not user error?
> Because I suppose that Emacs should never hang...

FWIW, the exponential blowup that can happen in regexp matching is
indeed a misfeature of Emacs's current regexp matcher.
But it's been that way "for ever" and there's no promising sign of an
upcoming fix for it.


        Stefan




This bug report was last modified 11 years and 10 days ago.

Previous Next


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