From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jens Schmidt 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: Fri, 13 Oct 2023 22:42:04 +0200 Message-ID: <8734yew8yr.fsf@sappc2.fritz.box> References: <835yc6hl0c.fsf@gnu.org> <87bkd7fsp4.fsf@sappc2.fritz.box> <87il7ew5wx.fsf@sappc2.fritz.box> <87il7dbosk.fsf@lidells.se> <87r0m1t0el.fsf@sappc2.fritz.box> <875y3bbokx.fsf@sappc2.fritz.box> Reply-To: Jens Schmidt Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5707"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: Robert Weiner , Hank Greenburg , Mats Lidell , Eli Zaretskii , rswgnu@gmail.com, 61436@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 13 22:43:59 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 1qrP0o-0001H2-OP for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Oct 2023 22:43:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrP0W-0002p4-KJ; Fri, 13 Oct 2023 16:43: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 1qrP0V-0002oj-IX for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2023 16:43:39 -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 1qrP0V-0001Uo-9T for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2023 16:43:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qrP0r-0005j1-VT for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2023 16:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jens Schmidt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Oct 2023 20:44:01 +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-submit@debbugs.gnu.org id=B61436.169722978521930 (code B ref 61436); Fri, 13 Oct 2023 20:44:01 +0000 Original-Received: (at 61436) by debbugs.gnu.org; 13 Oct 2023 20:43:05 +0000 Original-Received: from localhost ([127.0.0.1]:47483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrOzx-0005hd-9Z for submit@debbugs.gnu.org; Fri, 13 Oct 2023 16:43:05 -0400 Original-Received: from mr3.vodafonemail.de ([145.253.228.163]:46592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrOzs-0005h3-1b for 61436@debbugs.gnu.org; Fri, 13 Oct 2023 16:43:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-23sep; t=1697229751; bh=FA6YQSQcX6SQUkQ6xxj+yjCRvPeiyzRxMuiLO6lN/88=; h=From:To:Subject:References:Date:In-Reply-To:Message-ID:User-Agent: Content-Type:From; b=CH09edxamF760elNvYdF1U3JEZR89YG+NdAVaxudBMDCJ/+QKwquv6K2lktntR6po 6txoN0IqQ8n4xou7RoAlbASdf5jtjGhXSi3E2nd6qHR3oUpIxrzwPoUVWy2/Hyueay jRwL5YuJZ1UkOixyKltJ3LbAFXN5PxNSDfUSmBOU= Original-Received: from smtp.vodafone.de (unknown [10.0.0.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mr3.vodafonemail.de (Postfix) with ESMTPS id 4S6djg2gPjz1yhl; Fri, 13 Oct 2023 20:42:31 +0000 (UTC) Original-Received: from sappc2 (port-92-194-124-224.dynamic.as20676.net [92.194.124.224]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4S6djD5B6czMks9; Fri, 13 Oct 2023 20:42:05 +0000 (UTC) In-Reply-To: (Alan Mackenzie's message of "Fri, 13 Oct 2023 12:41:57 +0000") X-purgate-type: clean X-purgate: clean X-purgate-size: 1056 X-purgate-ID: 155817::1697229747-55FF9E6D-37EA2CAC/0/0 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:272363 Archived-At: Hi Alan, Alan Mackenzie writes: > To solve the bug, I'm amending the macro c-beginning-of-defun-1 so that > it only stops at a debug-prompt-regexp position when it also found a {. > Otherwise it will keep looping until it finds a better position or BOB. Thanks. > Then please confirm that the bug is > indeed fixed. For the fun of it I tried Hank's initial testcase as well, which is a bit less straight-forward to set up. The freezes are indeed gone with your patch. But I noticed that which-function-mode, when rapidly moving through the file, cannot always determine the current function name, then displaying "[n/a]" in the mode line. And indeed, when executing the simplified test case ./src/emacs -Q -l ~/tmp/init.el +181 ~/tmp/P1.java and then immediately hitting C-M-a, point jumps to the beginning of the preceeding catch clause (point=5779 of 18142) instead of BOD. This behavior is again tied to the `defun-prompt-regexp' used by Hyperbole - without that regexp C-M-a jumps to the real BOD.