From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mats Lidell via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#61436: Emacs Freezing With Java Files Date: Sun, 22 Oct 2023 00:14:43 +0200 Message-ID: <878r7voc6k.fsf@lidells.se> References: <87il7ew5wx.fsf@sappc2.fritz.box> <87il7dbosk.fsf@lidells.se> <87r0m1t0el.fsf@sappc2.fritz.box> <875y3bbokx.fsf@sappc2.fritz.box> <8734yew8yr.fsf@sappc2.fritz.box> Reply-To: Mats Lidell Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36728"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Robert Weiner , Hank Greenburg , 61436-done@debbugs.gnu.org, Eli Zaretskii , Robert Weiner , Jens Schmidt To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 22 00:16:00 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1quKGG-0009Jq-Kq for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Oct 2023 00:16:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1quKFv-0007gp-9L; Sat, 21 Oct 2023 18:15:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1quKFq-0007gX-VK for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2023 18:15:35 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1quKFq-0007rV-D9 for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2023 18:15:34 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1quKGI-0000vu-97 for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2023 18:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mats Lidell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Oct 2023 22:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61436 X-GNU-PR-Package: emacs Original-Received: via spool by 61436-done@debbugs.gnu.org id=D61436.16979265273529 (code D ref 61436); Sat, 21 Oct 2023 22:16:02 +0000 Original-Received: (at 61436-done) by debbugs.gnu.org; 21 Oct 2023 22:15:27 +0000 Original-Received: from localhost ([127.0.0.1]:45203 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1quKFf-0000uk-TS for submit@debbugs.gnu.org; Sat, 21 Oct 2023 18:15:27 -0400 Original-Received: from smtp.egensajt.se ([194.68.80.251]:54842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1quKFa-0000uU-S9 for 61436-done@debbugs.gnu.org; Sat, 21 Oct 2023 18:15:23 -0400 Original-Received: from ethel (c80-217-132-174.bredband.tele2.se [80.217.132.174]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mats.lidell@lidells.se) by smtp.egensajt.se (Postfix) with ESMTPSA id 5B3F420259; Sun, 22 Oct 2023 00:14:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lidells.se; s=dkim; t=1697926484; bh=HfHDRKdFE+db0zZzLusjMaZlndYw5PxDBvEg0BqeTic=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=T38DEBMhnJFoiOqDEMWz57L8vucPK3Xtjt8LQUhthi3KjQ++r1qlHFXcUBpPQIuyt 8GS8zvpJpBpiZS6YIH4u2kso6zoO48vfzrwSblCV87qoeHvnoLqsAWq0QYIJi9jA+H W4ZDCZa/oJuopSqSTBBqpni/XsltGdX98UwbwoiA= In-Reply-To: (Alan Mackenzie's message of "Mon, 16 Oct 2023 14:05:20 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272942 Archived-At: Hi Alan, Sorry for coming back late to this issue but today I tried to use the suggested regexp and got into some problems doing that. > Alan Mackenzie writes: > Here's the regexp. Would people please try it out and let me know how > well it works. > > (defconst java-defun-prompt-regexp > (let ((space* "[ \t\n\r\f]*") > (space+ "[ \t\n\r\f]+") > (modifier* > (concat "\\(?:" > (regexp-opt '("abstract" "const" "default" "final" "native" > "private" "protected" "public" "static" > "strictfp" "synchronized" "threadsafe" > "transient" "volatile") > 'words) ; Compatible with XEmacs > space+ "\\)*")) > (ids-with-dots "[_$a-zA-Z][_$.a-zA-Z0-9]*") > (ids-with-dot-\[\] "[[_$a-zA-Z][][_$.a-zA-Z0-9]*") > (paren-exp "([^);{}]*)") > (generic-exp "<[^(){};]*>")) > (concat "^[ \t]*" > modifier* > "\\(?:" generic-exp space* "\\)?" > ids-with-dot-\[\] space+ ; first part of type > "\\(?:" ids-with-dot-\[\] space+ "\\)?" ; optional second part of type. > "\\(?:[_a-zA-Z][^][ \t:;.,{}()=<>]*" ; defun name > "\\|" ids-with-dot* > "\\)" space* > paren-exp > "\\(?:" space* "]\\)*" ; What's this for? > "\\(?:" space* "\\" space* ids-with-dot-\[\]s* > "\\(?:," space* ids-with-dot-\[\]s* "\\)*" > "\\)?" > space*))) Can there be some typos in there or missing lines? I get a compiler warning for space+ being used in the let, should it be a let*? ids-with-dots is reported as not used. Can it be meant to be ids-with-dot*? ids-with-dot-\[\]s* is undefined!? Yours -- %% Mats