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#66218: 29.1.50; `beginning-of-defun' jumps to wrong position in `emacs-lisp-mode' Date: Sat, 07 Oct 2023 19:39:52 +0200 Message-ID: <87h6n2nxg7.fsf@sappc2.fritz.box> References: <87bkdbpn6n.fsf@sappc2.fritz.box> <83lecf0xt0.fsf@gnu.org> <87leceo2ns.fsf@sappc2.fritz.box> <83mswuzagx.fsf@gnu.org> 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="16040"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: 66218@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 07 19:40:54 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 1qpBIM-0003yN-8J for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Oct 2023 19:40:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qpBIE-0007U3-1h; Sat, 07 Oct 2023 13:40:46 -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 1qpBIB-0007Tt-A9 for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 13:40:43 -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 1qpBIB-0001zp-2O for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 13:40:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qpBIU-0008Pd-5m for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 13:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jens Schmidt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Oct 2023 17:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66218 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 66218-submit@debbugs.gnu.org id=B66218.169670043232285 (code B ref 66218); Sat, 07 Oct 2023 17:41:02 +0000 Original-Received: (at 66218) by debbugs.gnu.org; 7 Oct 2023 17:40:32 +0000 Original-Received: from localhost ([127.0.0.1]:55858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpBHz-0008Oe-HP for submit@debbugs.gnu.org; Sat, 07 Oct 2023 13:40:31 -0400 Original-Received: from mr5.vodafonemail.de ([145.253.228.165]:54582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpBHx-0008OO-63 for 66218@debbugs.gnu.org; Sat, 07 Oct 2023 13:40:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-21dec; t=1696700404; bh=k4LPRVf2xn/I3PaJSIUGXk+rtNAOJyev6XL8aYvlEaU=; h=From:To:Subject:References:Date:In-Reply-To:Message-ID:User-Agent: Content-Type:From; b=SFbiNl7PYHXxKGkGGAMR5wij/I+7ggxSLmP6ju1UoGzr+DpBwtDt6q5D3dtfRmo2m tWIcufChOCyxKu0KMe3Cr01LFe3tsEjwxAFNz9gOX/ClIUuTsfYbaB5C0o3NT5j7Do msfTIrGjhWS2wPKJpKM52ZxRwJOFS2wkHn35LIe0= 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 mr5.vodafonemail.de (Postfix) with ESMTPS id 4S2sxw0gnXz1yCS; Sat, 7 Oct 2023 17:40:03 +0000 (UTC) Original-Received: from sappc2 (port-92-194-236-127.dynamic.as20676.net [92.194.236.127]) (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 4S2sxm30QbzMkrv; Sat, 7 Oct 2023 17:39:53 +0000 (UTC) In-Reply-To: <83mswuzagx.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 07 Oct 2023 19:03:10 +0300") X-purgate-type: clean X-purgate: clean X-purgate-size: 1116 X-purgate-ID: 155817::1696700399-94FF7E6D-BC010802/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:272029 Archived-At: Eli Zaretskii writes: >> From: Jens Schmidt >> Cc: 66218@debbugs.gnu.org >> Date: Sat, 07 Oct 2023 17:47:19 +0200 > I'm surprised, to say the least, that such a simple bug needs such a > complex reproducer, and any deviation from it fails the recipe. I > think we must understand why. As soon as you find the file and it's displayed in a window, a lot of things happen even in an "emacs -Q" that set syntax properties in the buffer. With these syntax properties already being set, the bug won't reproduce. But here is an interactive-only reproducer (which comes close to my truth, btw, I don't use eldoc-mode or show-paren-mode): emacs -Q C-- M-x global-font-lock-mode RET C-- M-x global-eldoc-mode RET C-- M-x show-paren-mode RET C-x C-f lisp/net/shr.el RET M-x goto-char RET 70719 RET C-M-a Ends up on point=68645 of 91908 for me. > And if it turns out that the problem is so hard to reproduce, maybe we > don't have to fix it on emacs-29. Even if the patch is so innocent as adding a `save-match-data' in the right place?