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 17:47:19 +0200 Message-ID: <87leceo2ns.fsf@sappc2.fritz.box> References: <87bkdbpn6n.fsf@sappc2.fritz.box> <83lecf0xt0.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="13922"; 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 17:47:52 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 1qp9Wy-0003QH-Dz for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Oct 2023 17:47:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qp9Wq-0006kN-0T; Sat, 07 Oct 2023 11:47:44 -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 1qp9Wo-0006jz-Ia for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 11:47:42 -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 1qp9Wo-0007NX-9w for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 11:47:42 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qp9X7-00025Z-OK for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 11:48: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: Sat, 07 Oct 2023 15:48:01 +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.16966936788002 (code B ref 66218); Sat, 07 Oct 2023 15:48:01 +0000 Original-Received: (at 66218) by debbugs.gnu.org; 7 Oct 2023 15:47:58 +0000 Original-Received: from localhost ([127.0.0.1]:55701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qp9X4-00024y-02 for submit@debbugs.gnu.org; Sat, 07 Oct 2023 11:47:58 -0400 Original-Received: from mr3.vodafonemail.de ([145.253.228.163]:33600 helo=mr80.fra-mediabeam.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qp9X2-000249-83 for 66218@debbugs.gnu.org; Sat, 07 Oct 2023 11:47:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-23sep; t=1696693651; bh=SSroxNHqesPlFwSd64gwN/oWOaVYtufaTmCwgLMwE2g=; h=From:To:Subject:References:Date:In-Reply-To:Message-ID:User-Agent: Content-Type:From; b=f5r1j2hC+LkU12gErFAIa31nJs/8JPZBlKpv5MlcqAk6px7NAsVGXFKuzRSm/A8Zi Gq/zmSZoosapUhk05s6funtLJB62BlAT17B/keRpDsA6qKLiuy8l/TDVLs0UyhnBPj Hl2FtjeWNbgFHd79rLHxtrh2GWP1Kzlp/ZF1/MS4= 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 mr80.fra-mediabeam.com (Postfix) with ESMTPS id 4S2qS320D4z2GRH; Sat, 7 Oct 2023 15:47:31 +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 4S2qRv5jmbzHnf1; Sat, 7 Oct 2023 15:47:20 +0000 (UTC) In-Reply-To: <83lecf0xt0.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 07 Oct 2023 09:08:27 +0300") X-purgate-type: clean X-purgate: clean X-purgate-size: 2208 X-purgate-ID: 155817::1696693647-DE7FD94E-4471E960/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:272018 Archived-At: 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. 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): ------------------------- snip ------------------------- [...] (defun shr-tag-bdi (dom) (insert ?\N{FIRST STRONG ISOLATE}) (shr-generic dom) ^ (insert ?\N{POP DIRECTIONAL ISOLATE})) [...] ------------------------- snip ------------------------- If that doesn't help, I can try setting up a reproducer running in batch mode.