Subject: bug#17509: 23.4; bug with regexp in java-mode

From: Francesco Potortì <[email-masked]>
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.