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

From: Glenn Morris <[email-masked]>
Date: Fri, 16 May 2014 12:07:42 -0400

Francesco Potortì wrote:

> 	    (setq defun-prompt-regexp "\\(class\\|/\\*\\*\\)[^{]*")

Why is this an Emacs bug, and not user error?
That regexp matches the entire example file that you sent.
Maybe you at least want "[^{\n]*" at the end.