From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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:03:10 +0300 Message-ID: <83mswuzagx.fsf@gnu.org> References: <87bkdbpn6n.fsf@sappc2.fritz.box> <83lecf0xt0.fsf@gnu.org> <87leceo2ns.fsf@sappc2.fritz.box> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25915"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66218@debbugs.gnu.org To: Jens Schmidt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 07 18:04: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 1qp9mZ-0006SF-NQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Oct 2023 18:03:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qp9mL-0003CN-Ia; Sat, 07 Oct 2023 12:03:45 -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 1qp9mJ-0003Bb-C7 for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 12:03: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 1qp9mJ-0001wb-3x for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 12:03:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qp9mc-0005B5-6L for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 12:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Oct 2023 16:04: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.169669460519861 (code B ref 66218); Sat, 07 Oct 2023 16:04:02 +0000 Original-Received: (at 66218) by debbugs.gnu.org; 7 Oct 2023 16:03:25 +0000 Original-Received: from localhost ([127.0.0.1]:55748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qp9m1-0005AF-CP for submit@debbugs.gnu.org; Sat, 07 Oct 2023 12:03:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45126) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qp9lz-0005A3-Fi for 66218@debbugs.gnu.org; Sat, 07 Oct 2023 12:03:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qp9la-0001tB-BC; Sat, 07 Oct 2023 12:02:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=sPlu/fmfTOYBsCW9VDDQwQ8CK9LO5hYwg6Ct7KNY288=; b=ldaQG9QiwUbG RV86TAyjasDuEuKVEQ73SeuKParh+xWU0AcPqZhYyBC87wircFXjbqp1lyKrLq9xVkTGZWTbtyUWh 0iqwYw5/zHU7I6lLL5pGIXYmW797nWQC75ydGgIonxfq/MHJbEi+P0a8rZTmt1rkK2wEulvF7BfOo QeYqEQEqjQqYaGU03g4pV44LnbsMnLbJsvzt3u9X5p8um3enDwlyWBTDQbqcHOGwzc3svdAp5Nhwt sr5flwwpPruZ8piBsg93jn/mEKv5tvleezAbh5JzljpgBV6Jrj4NM5iILSjN+nQpO+CQZTh518jk8 VCUsylHAzlmKLA2etaz0FQ==; In-Reply-To: <87leceo2ns.fsf@sappc2.fritz.box> (message from Jens Schmidt on Sat, 07 Oct 2023 17:47:19 +0200) 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:272022 Archived-At: > From: Jens Schmidt > Cc: 66218@debbugs.gnu.org > Date: Sat, 07 Oct 2023 17:47:19 +0200 > > Eli Zaretskii writes: > > >> From: Jens Schmidt > >> Cc: Eli Zaretskii > >> Date: Fri, 06 Oct 2023 21:26:24 +0200 > > > > I'm afraid I cannot reproduce the original problem using the current > > emacs-29 branch. Typing C-M-a from buffer position 70719 in shr.el > > from emacs-29 lands me at the beginning of shr-table-body, as > > expected. > > Thanks for looking into this, but it still reproduces for me. > > It is important to execute the reproducer *without* actually getting the > file to the glass, so hitting C-M-a in the file itself would not show > the issue. Why not? If the problem is where you identify it, it should not matter how beginning-of-defun is invoked. I'm not being stubborn, mind you, I think it's important that we understand the issue completely to reason about the solutions. And I think we don't yet have a sufficient understanding of the problem, or at least I don't. > Please try exactly like described below, starting off the > root of the development directory: > > ------------------------- snip ------------------------- > [emacs-29]$ pwd > /home/jschmidt/work/emacs-29 > [emacs-29]$ ls -al README > -rw-r--r-- 1 jschmidt jschmidt 6125 Aug 1 00:06 README > [emacs-29]$ git rev-parse HEAD > 8f23a02a9ea1fbc4213cae5664dcb9bf6b5205f6 > [emacs-29]$ make -j8 > make actual-all || make advice-on-failure make-target=all exit-status=$? > make[1]: Entering directory '/home/jschmidt/work/emacs-29' > [...] > make[1]: Leaving directory '/home/jschmidt/work/emacs-29' > [emacs-29]$ ./src/emacs -Q > ------------------------- snip ------------------------- > > Paste the following form into the scratch buffer with C-y: > > ------------------------- snip ------------------------- > (progn > (with-current-buffer > (find-file-noselect "lisp/net/shr.el") > (goto-char 70719) > (beginning-of-defun) > ;; point should be at BOF of `shr-table-body', but is in fact > ;; somewhere near a Unicode character name > (pop-to-buffer (current-buffer)))) > ------------------------- snip ------------------------- > > And immediately after that hit C-x C-e. It lands me to the position > denoted by "^" (point=68645 of 91908): 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. And if it turns out that the problem is so hard to reproduce, maybe we don't have to fix it on emacs-29.