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


Message #11 received at 17509 <at> debbugs.gnu.org (full text, mbox):

From: Francesco Potortì <pot <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 17509 <at> debbugs.gnu.org
Subject: Re: bug#17509: 23.4; bug with regexp in java-mode
Date: Fri, 16 May 2014 18:22:16 +0200
>Francesco Potortì wrote:
>
>> 	    (setq defun-prompt-regexp "\\(class\\|/\\*\\*\\)[^{]*")
>
>Why is this an Emacs bug, and not user error?

Because I suppose that Emacs should never hang...

>That regexp matches the entire example file that you sent.
>Maybe you at least want "[^{\n]*" at the end.

To be true, I do not even know where that regexp comes from, what is its
purpose and why I did have it in my .emacs :(

Thanks for the tip.




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.