From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 26 15:41:21 2023 Received: (at submit) by debbugs.gnu.org; 26 Sep 2023 19:41:21 +0000 Received: from localhost ([127.0.0.1]:49928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qlDvt-00017u-3r for submit@debbugs.gnu.org; Tue, 26 Sep 2023 15:41:21 -0400 Received: from lists.gnu.org ([2001:470:142::17]:41064) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qlDvp-00017f-Tu for submit@debbugs.gnu.org; Tue, 26 Sep 2023 15:41:19 -0400 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 1qlDvX-0000Vp-C2 for bug-gnu-emacs@gnu.org; Tue, 26 Sep 2023 15:40:59 -0400 Received: from mr5.vodafonemail.de ([145.253.228.165]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qlDvR-0007X5-RI for bug-gnu-emacs@gnu.org; Tue, 26 Sep 2023 15:40:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-21dec; t=1695757245; bh=TCSgXvaePg+bGOpUCE78crJCN08ue27N4OCk3lyGutY=; h=Content-Type:Message-ID:Date:User-Agent:Content-Language:From:To: Subject:From; b=W6iXvYsyrxUQksRZasMXBn/7ohFzwSO1TQpiQZjcopeLZVNGdGH6U8cV3FR4/ssRt rJyQj/r2C22kG6NEoshQewMLj9+Ejcze30fUGBphRIuw/g5yx3FauBVe8uEvvjQEIH y1wID3YALmV6iuPx7Pgw4RLnyuJXZeG+A+J8kn5Q= 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 4Rw98F4tQRz1y4f for ; Tue, 26 Sep 2023 19:40:45 +0000 (UTC) Received: from [192.168.178.41] (port-92-194-162-232.dynamic.as20676.net [92.194.162.232]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4Rw9892cVDzMks9 for ; Tue, 26 Sep 2023 19:40:38 +0000 (UTC) Content-Type: multipart/mixed; boundary="------------HDJ0GXmVjh5curjHcUkYWBCj" Message-ID: Date: Tue, 26 Sep 2023 21:40:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Content-Language: de-DE-frami, en-US From: Jens Schmidt To: bug-gnu-emacs@gnu.org Subject: 29.1.50; `beginning-of-defun' jumps to wrong position in `emacs-lisp-mode' X-purgate-type: clean X-purgate: clean X-purgate-size: 6973 X-purgate-ID: 155817::1695757241-AB7E4E6D-BCC8C6E7/0/0 Received-SPF: pass client-ip=145.253.228.165; envelope-from=jschmidt4gnu@vodafonemail.de; helo=mr5.vodafonemail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This is a multi-part message in MIME format. --------------HDJ0GXmVjh5curjHcUkYWBCj Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Function `beginning-of-defun-raw' uses `syntax-pss' at [1] to verify a potential BOF in this snippet: ------------------------- snip ------------------------- (and (let (found) (while (and (setq found (re-search-backward (if defun-prompt-regexp (concat (if open-paren-in-column-0-is-defun-start "^\\s(\\|" "") "\\(?:" defun-prompt-regexp "\\)\\s(") "^\\s(") nil 'move arg)) (nth 8 (syntax-ppss)))) ^^^^^^^^^^^^^ [1] found) (progn (goto-char (1- (match-end 0))) ^^^^^^^^^^^^^ [2] t))) ------------------------- snip ------------------------- However, if `syntax-pss' calls a `syntax-propertize-function', the latter can overwrite match data, which is referenced at [2] above. Here is an "emacs -Q" reproducer that shows the problem (CHANGES REQUIRED): ------------------------- snip ------------------------- (progn ;; CHANGE FILE NAME AS NEEDED. It is important that the file ;; is found first in this test case, or otherwise syntax ;; properties may already have been populated. (ignore-errors (kill-buffer "shr.el")) (with-current-buffer (find-file-noselect "~/work/emacs-29/lisp/net/shr.el") ;; CHANGE POSITION AS NEEDED, should be line 2044, at BOL ;; before the first `cond' in `shr-table-body' (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 ------------------------- Patch attached. Please let me know if you think that ERTs or anything else is requried. In GNU Emacs 29.1.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2023-09-25 built on sappc2 Repository revision: ca5b48fd76db2ab7c154c2db6a7d4a9fb7857f6c Repository branch: beginning-of-defun-save-match-data Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux 11 (bullseye) Configured using: 'configure -C --with-native-compilation' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LC_COLLATE: POSIX value of $LC_TIME: POSIX value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode cl-loaddefs cl-lib bytecomp byte-compile rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 93935 9790) (symbols 48 7139 0) (strings 32 26103 2634) (string-bytes 1 831368) (vectors 16 20039) (vector-slots 8 365879 14596) (floats 8 41 21) (intervals 56 237 0) (buffers 976 12)) --------------HDJ0GXmVjh5curjHcUkYWBCj Content-Type: text/x-patch; charset=UTF-8; name="0001-Fix-beginning-of-defun-not-jumping-to-BOF.patch" Content-Disposition: attachment; filename="0001-Fix-beginning-of-defun-not-jumping-to-BOF.patch" Content-Transfer-Encoding: base64 RnJvbSBjZjU5M2ZhZDViMWJjOTE0MDIwMzU2M2VhYzhkZGYwZDQ2MDNmY2NiIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBKZW5zIFNjaG1pZHQgPGpzY2htaWR0NGdudUB2b2Rh Zm9uZW1haWwuZGU+CkRhdGU6IFR1ZSwgMjYgU2VwIDIwMjMgMjE6MzY6MTkgKzAyMDAKU3Vi amVjdDogW1BBVENIXSBGaXggYmVnaW5uaW5nLW9mLWRlZnVuIG5vdCBqdW1waW5nIHRvIEJP RgoKKiBsaXNwL2VtYWNzLWxpc3AvbGlzcC5lbCAoYmVnaW5uaW5nLW9mLWRlZnVuLXJhdyk6 IFNhdmUgbWF0Y2ggZGF0YQphcm91bmQgYSBjYWxsIHRvIGBzeW50YXgtcHBzcycuCi0tLQog bGlzcC9lbWFjcy1saXNwL2xpc3AuZWwgfCAzICsrLQogMSBmaWxlIGNoYW5nZWQsIDIgaW5z ZXJ0aW9ucygrKSwgMSBkZWxldGlvbigtKQoKZGlmZiAtLWdpdCBhL2xpc3AvZW1hY3MtbGlz cC9saXNwLmVsIGIvbGlzcC9lbWFjcy1saXNwL2xpc3AuZWwKaW5kZXggMTdkNThiMWUzYzYu LmI0OTg1MGU0ZWYwIDEwMDY0NAotLS0gYS9saXNwL2VtYWNzLWxpc3AvbGlzcC5lbAorKysg Yi9saXNwL2VtYWNzLWxpc3AvbGlzcC5lbApAQCAtNDIyLDcgKzQyMiw4IEBAIGJlZ2lubmlu Zy1vZi1kZWZ1bi1yYXcKIAkJCQkgICAgICAgIlxcKD86IiBkZWZ1bi1wcm9tcHQtcmVnZXhw ICJcXClcXHMoIikKIAkJCSAgICAgIl5cXHMoIikKIAkJCSAgICAgICAgICAgICAgICAgICAg ICBuaWwgJ21vdmUgYXJnKSkKLSAgICAgICAgICAgICAgICAgICAgKG50aCA4IChzeW50YXgt cHBzcykpKSkKKyAgICAgICAgICAgICAgICAgICAgKHNhdmUtbWF0Y2gtZGF0YQorICAgICAg ICAgICAgICAgICAgICAgIChudGggOCAoc3ludGF4LXBwc3MpKSkpKQogICAgICAgICAgICBm b3VuZCkKIAkgKHByb2duIChnb3RvLWNoYXIgKDEtIChtYXRjaC1lbmQgMCkpKQogICAgICAg ICAgICAgICAgIHQpKSkKLS0gCjIuMzAuMgoK --------------HDJ0GXmVjh5curjHcUkYWBCj-- From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 27 21:01:07 2023 Received: (at submit) by debbugs.gnu.org; 28 Sep 2023 01:01:07 +0000 Received: from localhost ([127.0.0.1]:52749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qlfOt-0006PL-HX for submit@debbugs.gnu.org; Wed, 27 Sep 2023 21:01:07 -0400 Received: from lists.gnu.org ([2001:470:142::17]:37710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qlfOo-0006OT-Ia for submit@debbugs.gnu.org; Wed, 27 Sep 2023 21:01:03 -0400 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 1qlfOT-00029v-Oi for bug-gnu-emacs@gnu.org; Wed, 27 Sep 2023 21:00:41 -0400 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qlfOP-00080J-Ld for bug-gnu-emacs@gnu.org; Wed, 27 Sep 2023 21:00:40 -0400 Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-77428510fe7so429059885a.1 for ; Wed, 27 Sep 2023 18:00:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695862836; x=1696467636; darn=gnu.org; h=mime-version:message-id:date:subject:cc:to:from:user-agent:from:to :cc:subject:date:message-id:reply-to; bh=78AYaD6JVX/MVurPWXYMJ+5WkdP8xcdsoVnB6qdZ9BQ=; b=JYo/Xkwwf9cU0/bV+iR5I4e+CwGfm3qEi5StKSvKBNCLRVgb8FFkm9zLkllrV9xK/D vX4yUjOnmWx9/rp9V7ySESYACinqQ+MngG2+ffa9TymExImUe+vrGt5B04tdYInRppD8 G0HNq4CVnYnaz5DbM+Ol4YADapXZ777HuIXlL6mOCID9AbnMSVvGHMNshBknGNHjJo2g tnKPHmNw0J1DzyMpahkvVr2owSoUiKmeHuuqdAp/4dXsQlfFxsw0cUS0r1wlcF8ukTt1 H1IBqvtqrG4U5pYAlqRbaEHnSPqxRWHzRlz+ZZYO1cTWNG8iiiTv0lVYlIfawIDAtpPL MfEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695862836; x=1696467636; h=mime-version:message-id:date:subject:cc:to:from:user-agent :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=78AYaD6JVX/MVurPWXYMJ+5WkdP8xcdsoVnB6qdZ9BQ=; b=kyaG5b1kqiIGOkXRcKvQmya1XCpIMujAQNW4wRHZ5iUrnP8mMi09DLJfWrvuCQqHnx FsEbK0wlDHQcTC0L5dNw27B/wIUHgG/WYyX4g7ekWPIXUF/eVefeO2htVjrbr6Wn/mHA ByfBviF58AM9Gi2y/5FdrePakech8fF23lC9HEyLxbglCRUkBOxKJiJvB5xFAgzpwLTI yZYiRLajTv/7GrAiNIFuVaGrBNvj3EiRrepKUz6CrZMoXgpwpcBbtHwDv+fEvueanWEV BLtBcpC64aBoPq7pbsiFnG/WyGkmhGxkLTQWUq8NVNL2Dk9Baz9pkVaWHRVdwQbPKa7W N9RQ== X-Gm-Message-State: AOJu0YzdCKzQnBuy/MmI+h/JTPIQGE3Q2SVnsSDXk9CUOmq8LeaMDKhB nAmEZu63cqXFB/rEt30dg4Y= X-Google-Smtp-Source: AGHT+IFkQUPtKySzOTnCVX95pGk/fYauSmZk3wdILpfuag8vrcoB1LZu3a6m+tOW4k2X0+ZRb3NyJA== X-Received: by 2002:a05:620a:394f:b0:773:f6ea:1f59 with SMTP id qs15-20020a05620a394f00b00773f6ea1f59mr7183630qkn.16.1695862836149; Wed, 27 Sep 2023 18:00:36 -0700 (PDT) Received: from laptop ([2601:84:847f:c697:2d4:9eff:feb6:970c]) by smtp.gmail.com with ESMTPSA id w8-20020ae9e508000000b0076cdc3b5beasm2680974qkf.86.2023.09.27.18.00.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 18:00:35 -0700 (PDT) User-agent: mu4e 1.11.17; emacs 30.0.50 From: No Wayman To: Jens Schmidt via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Subject: Re: bug#66218: 29.1.50; `beginning-of-defun' jumps to wrong position in `emacs-lisp-mode' Date: Wed, 27 Sep 2023 20:59:55 -0400 Message-ID: <87v8bvun4z.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2607:f8b0:4864:20::732; envelope-from=iarchivedmywholelife@gmail.com; helo=mail-qk1-x732.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit Cc: Jens Schmidt , 66218@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Possibly related to bug#60768? From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 28 15:44:33 2023 Received: (at 66218) by debbugs.gnu.org; 28 Sep 2023 19:44:33 +0000 Received: from localhost ([127.0.0.1]:54541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qlww4-00039U-Rg for submit@debbugs.gnu.org; Thu, 28 Sep 2023 15:44:33 -0400 Received: from mr3.vodafonemail.de ([145.253.228.163]:46362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qlwvz-00039B-IL for 66218@debbugs.gnu.org; Thu, 28 Sep 2023 15:44:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-21dec; t=1695930246; bh=8AKWKL3h08qvtkMKomfTboG7irt1nqGomzVHfxEb/WM=; h=From:To:Subject:References:Date:In-Reply-To:Message-ID:User-Agent: Content-Type:From; b=KmvaXRd5Ccm2OTdWcCB1t9f0yi6G54U5dZkJsTB4V/W1TN1hjrHmS3HbnhbfGllTu J6twByREUjLFUqyf7XORI0dxEDKWTOyQW2XI0zHG0GXljSNjEniLtB72M9sooCmS2q a9trk/nNppOQTObQVdHtHHW7rbKPBQzvyue/WZGk= 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 4RxP7B4Dz4z1yky; Thu, 28 Sep 2023 19:44:06 +0000 (UTC) Received: from sappc2 (port-92-194-43-39.dynamic.as20676.net [92.194.43.39]) (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 4RxP730g1PzKm4D; Thu, 28 Sep 2023 19:43:55 +0000 (UTC) From: Jens Schmidt To: No Wayman Subject: Re: bug#66218: 29.1.50; `beginning-of-defun' jumps to wrong position in `emacs-lisp-mode' References: <87v8bvun4z.fsf@gmail.com> Date: Thu, 28 Sep 2023 21:43:55 +0200 In-Reply-To: <87v8bvun4z.fsf@gmail.com> (No Wayman's message of "Wed, 27 Sep 2023 20:59:55 -0400") Message-ID: <87jzsa6q2s.fsf@sappc2.fritz.box> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-purgate-type: clean X-purgate: clean X-purgate-size: 317 X-purgate-ID: 155817::1695930242-99FFD58E-2D6C239A/0/0 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 66218 Cc: 66218@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) No Wayman writes: > Possibly related to bug#60768? Actually, yes: With above patch your bug seems fixed. The preconditions for this bug are also met by your bug: Syntax properties previously not loaded plus the substring "###" which triggers overwriting of the match data. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 28 15:59:36 2023 Received: (at control) by debbugs.gnu.org; 28 Sep 2023 19:59:36 +0000 Received: from localhost ([127.0.0.1]:54583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qlxAd-0003e4-Ta for submit@debbugs.gnu.org; Thu, 28 Sep 2023 15:59:36 -0400 Received: from mr3.vodafonemail.de ([145.253.228.163]:52450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qlxAc-0003dp-4Z for control@debbugs.gnu.org; Thu, 28 Sep 2023 15:59:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-21dec; t=1695931153; bh=57wtMoi3wVrsN8lpwEB9Ty4s5IDO8HxGoPD6ecHsa3E=; h=From:To:Subject:Date:Message-ID:Content-Type:From; b=gey8tLGVA0RRsM1g/24ONwpxtZHmchYZkNJdurg3p5Z9pjUEi/5PXYTnreNBVLwtr syQcbcCg6MslmjtU/xqJDAiSopk4aPdwkGnMP0nVV+pGjl2Pd8nlpJlEhVOvuopSqK W4duDwU641s9RsVmizgyxnj4r4YzXCilcS2ezPGc= 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 4RxPSd02kdz1ymJ for ; Thu, 28 Sep 2023 19:59:13 +0000 (UTC) Received: from sappc2 (port-92-194-43-39.dynamic.as20676.net [92.194.43.39]) (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 4RxPSc4Z6rzMkrx for ; Thu, 28 Sep 2023 19:59:09 +0000 (UTC) From: Jens Schmidt To: control@debbugs.gnu.org Subject: control message for bug #66218 Date: Thu, 28 Sep 2023 21:59:09 +0200 Message-ID: <87il7u6pde.fsf@sappc2.fritz.box> MIME-Version: 1.0 Content-Type: text/plain X-purgate-type: clean X-purgate: clean X-purgate-size: 28 X-purgate-ID: 155817::1695931152-F6FFBE6D-65900BD9/0/0 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) tags 66218 + patch quit From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 30 19:49:13 2023 Received: (at 66218) by debbugs.gnu.org; 30 Sep 2023 23:49:13 +0000 Received: from localhost ([127.0.0.1]:60065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmjhw-00072L-Ua for submit@debbugs.gnu.org; Sat, 30 Sep 2023 19:49:13 -0400 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]:59478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmjht-00071X-RH for 66218@debbugs.gnu.org; Sat, 30 Sep 2023 19:49:10 -0400 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-5041d6d8b10so24553750e87.2 for <66218@debbugs.gnu.org>; Sat, 30 Sep 2023 16:48:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696117728; x=1696722528; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=qvtxfSonX/uTcrAQSDjBOKrNg4zwNXrBrO4oMI/frxI=; b=SHYZ0diUeh8NZXPg+VRzkvsrSqhuHnsNCKeIAMU0dPSCAP6tDcQ9SawXSiqNIsSPLB HeJJoOzhn0DaBkH6ucalcc+0+Z0FJGbLEKdzyZN07gaDQ0a1xWv8BqnCN0TPV8XmdpDr hTXsaKQckhxeLYu+3s0FgqAdTSF2BGd2jlF6AgldwKiA+wCoGiNQm5ez/7hLbxPXvQtD JkTBYjOqEJQFXDDxMDNjB3dkTpitvZQj6rZbvoAOEofYgnBR5ZQxtfKLyDbaUAFD6ntA lGvjFC29CRd2ss7U3BY/2hP4c8xIVMLeaHyjkkbSqQs8mchRfxdZIabVvvB5qR81XlFA ipjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696117728; x=1696722528; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qvtxfSonX/uTcrAQSDjBOKrNg4zwNXrBrO4oMI/frxI=; b=duDcolOAgQHhjDi/Wm8mBFwCRnrzaMgQXLCfbTYvGCHm9NNGIE/VWImddGKFftBA1+ ugOq72J+4yScZYXX8MZrbBvGQDEjNYUtGfhyvGWsH8WQogwwSeVRgefc+T01fgYJmvU4 eF5FFfsaQRPRZ65jt5t0L8MVtD7r4wg0CPCMJ9uYKkgrVUaF4YAq/6p0zvjQETBm4kFg AXjJMZFdxlaRiIvXMuyshrHY3CRm1Hnxtt1MggFuuAtoC9XlgjMKRSVkshBm8kvW2Nh4 pbHivyQZzgE5TSEvcq/ekD9DhmPZAZrL+5ZKlKu9b+haC4t+nja0x+ncPQQFofxWlJfY uuZw== X-Gm-Message-State: AOJu0YwBmIre7BpJAE1GHED2r9a5c1gcVDkvFTARELO435KALT0bGm3p TIB8IbER3VG72iI5Q3LMxZM4o8hNboeyVgUuuGrUdk4k X-Google-Smtp-Source: AGHT+IGJ7ynU+d5fGIXgrBrbjfdTZVr7tRvkTcPNCKFOiWc97Jg49j/YMsxIo5yPlc/dicQWUtsGu/Ij7jNOwlnQyDk= X-Received: by 2002:a05:6512:15d:b0:503:3587:fd15 with SMTP id m29-20020a056512015d00b005033587fd15mr6334461lfo.61.1696117728083; Sat, 30 Sep 2023 16:48:48 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 30 Sep 2023 16:48:47 -0700 From: Stefan Kangas In-Reply-To: <87jzsa6q2s.fsf@sappc2.fritz.box> (Jens Schmidt's message of "Thu, 28 Sep 2023 21:43:55 +0200") References: <87v8bvun4z.fsf@gmail.com> <87jzsa6q2s.fsf@sappc2.fritz.box> MIME-Version: 1.0 Date: Sat, 30 Sep 2023 16:48:47 -0700 Message-ID: Subject: Re: bug#66218: 29.1.50; `beginning-of-defun' jumps to wrong position in `emacs-lisp-mode' To: Jens Schmidt Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 66218 Cc: No Wayman , 66218@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) forcemerge 60768 66218 tags 60768 + patch thanks Jens Schmidt writes: > No Wayman writes: > >> Possibly related to bug#60768? > > Actually, yes: With above patch your bug seems fixed. The preconditions > for this bug are also met by your bug: Syntax properties previously not > loaded plus the substring "###" which triggers overwriting of the match > data. Thanks, I'm therefore merging those bugs. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 06 15:27:02 2023 Received: (at 66218) by debbugs.gnu.org; 6 Oct 2023 19:27:02 +0000 Received: from localhost ([127.0.0.1]:52698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoqTW-0003jx-83 for submit@debbugs.gnu.org; Fri, 06 Oct 2023 15:27:02 -0400 Received: from mr4.vodafonemail.de ([145.253.228.164]:38002) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoqTU-0003jd-B8 for 66218@debbugs.gnu.org; Fri, 06 Oct 2023 15:27:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-21dec; t=1696620395; bh=7bULZ57SQjn45E1X01HDH6MQVDdUfEgsa5O+pLq235k=; h=From:To:Subject:References:Date:In-Reply-To:Message-ID:User-Agent: Content-Type:From; b=WzwOBbdiP5gtc6bSG/0ie2KNgFghL3XwNIcAmzUc0ODyAvM1MDrWA2KOSikZUX3kz Q3ROQ2hSkXPvQ+I2glHjFl9Q0sEsdhIh6A64bNHerq+jtqoIioyHy8+s6MZPb39Wm6 QlVn1F0DrxL44cziOKBhi5ueY3oNEg+PkP+sNsMU= 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 mr4.vodafonemail.de (Postfix) with ESMTPS id 4S2JMH6JZ9z1xqk; Fri, 6 Oct 2023 19:26:35 +0000 (UTC) Received: from sappc2 (port-92-194-239-211.dynamic.as20676.net [92.194.239.211]) (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 4S2JM81xlQzHpxb; Fri, 6 Oct 2023 19:26:25 +0000 (UTC) From: Jens Schmidt To: 66218@debbugs.gnu.org Subject: Re: bug#66218: 29.1.50; `beginning-of-defun' jumps to wrong position in `emacs-lisp-mode' References: Date: Fri, 06 Oct 2023 21:26:24 +0200 In-Reply-To: (Jens Schmidt's message of "Tue, 26 Sep 2023 21:40:32 +0200") Message-ID: <87bkdbpn6n.fsf@sappc2.fritz.box> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-purgate-type: clean X-purgate: clean X-purgate-size: 342 X-purgate-ID: 155817::1696620391-7AFC818D-EFF18BBF/0/0 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 66218 Cc: Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Jens Schmidt writes: > However, if `syntax-pss' calls a `syntax-propertize-function', the latter > can overwrite match data, which is referenced at [2] above. > Patch attached. This seems to be such a low-hanging fruit, so: Bump. Eli, could you please review and commit to emacs-29? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 07 02:08:50 2023 Received: (at 66218) by debbugs.gnu.org; 7 Oct 2023 06:08:50 +0000 Received: from localhost ([127.0.0.1]:53204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qp0Uc-0000yt-0o for submit@debbugs.gnu.org; Sat, 07 Oct 2023 02:08:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qp0UZ-0000yg-K9 for 66218@debbugs.gnu.org; Sat, 07 Oct 2023 02:08:48 -0400 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 1qp0UA-0001KM-5E; Sat, 07 Oct 2023 02:08:22 -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=Q17572KSMHChk1l/GIZ15EZXPTtPk8CGW+NGHWfrcbk=; b=hN5kgveX0yLy AYUk1fbIRor7SZj+0q4b7dye+6mbQ18mlJeZ+zM+rHXRVPheQAF+M396n7zvqaQ3vqjeg60Q0G8pL qc3XOdJtisTYgr/lcO+2vHeRzDgzZASSo/KC5UkYYkzHlGsD4DfVVUgenKxgFAwe66MRMZa9QCQ6n +LQHH7oh3DbZ4J2RAQ3mKLjfgCGTarG+BWIGPh8riqQTTy8D1kkU4aYOmDJsII9zDgaoaCeASKZkT Lb8vDMAyB8CwiU1oidMAvy71TNq0EHXRH/6E9AmW+G0BMUQKlGzCnA6ZNWnqK0F6zNeA/uimiDiDE f0MF0Co5/t6q+LdSpKRdRA==; Date: Sat, 07 Oct 2023 09:08:27 +0300 Message-Id: <83lecf0xt0.fsf@gnu.org> From: Eli Zaretskii To: Jens Schmidt In-Reply-To: <87bkdbpn6n.fsf@sappc2.fritz.box> (message from Jens Schmidt on Fri, 06 Oct 2023 21:26:24 +0200) Subject: Re: bug#66218: 29.1.50; `beginning-of-defun' jumps to wrong position in `emacs-lisp-mode' References: <87bkdbpn6n.fsf@sappc2.fritz.box> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66218 Cc: 66218@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Jens Schmidt > Cc: Eli Zaretskii > Date: Fri, 06 Oct 2023 21:26:24 +0200 > > Jens Schmidt writes: > > > However, if `syntax-pss' calls a `syntax-propertize-function', the latter > > can overwrite match data, which is referenced at [2] above. > > > Patch attached. > > This seems to be such a low-hanging fruit, so: > > Bump. > > Eli, could you please review and commit to emacs-29? 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. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 07 11:47:58 2023 Received: (at 66218) by debbugs.gnu.org; 7 Oct 2023 15:47:58 +0000 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 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= 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) 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) From: Jens Schmidt To: Eli Zaretskii Subject: Re: bug#66218: 29.1.50; `beginning-of-defun' jumps to wrong position in `emacs-lisp-mode' References: <87bkdbpn6n.fsf@sappc2.fritz.box> <83lecf0xt0.fsf@gnu.org> Date: Sat, 07 Oct 2023 17:47:19 +0200 In-Reply-To: <83lecf0xt0.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 07 Oct 2023 09:08:27 +0300") Message-ID: <87leceo2ns.fsf@sappc2.fritz.box> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-purgate-type: clean X-purgate: clean X-purgate-size: 2208 X-purgate-ID: 155817::1696693647-DE7FD94E-4471E960/0/0 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 66218 Cc: 66218@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 07 12:03:25 2023 Received: (at 66218) by debbugs.gnu.org; 7 Oct 2023 16:03:25 +0000 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 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 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==; Date: Sat, 07 Oct 2023 19:03:10 +0300 Message-Id: <83mswuzagx.fsf@gnu.org> From: Eli Zaretskii To: Jens Schmidt In-Reply-To: <87leceo2ns.fsf@sappc2.fritz.box> (message from Jens Schmidt on Sat, 07 Oct 2023 17:47:19 +0200) Subject: Re: bug#66218: 29.1.50; `beginning-of-defun' jumps to wrong position in `emacs-lisp-mode' References: <87bkdbpn6n.fsf@sappc2.fritz.box> <83lecf0xt0.fsf@gnu.org> <87leceo2ns.fsf@sappc2.fritz.box> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66218 Cc: 66218@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 07 13:40:31 2023 Received: (at 66218) by debbugs.gnu.org; 7 Oct 2023 17:40:32 +0000 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 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= 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) 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) From: Jens Schmidt To: Eli Zaretskii Subject: Re: bug#66218: 29.1.50; `beginning-of-defun' jumps to wrong position in `emacs-lisp-mode' References: <87bkdbpn6n.fsf@sappc2.fritz.box> <83lecf0xt0.fsf@gnu.org> <87leceo2ns.fsf@sappc2.fritz.box> <83mswuzagx.fsf@gnu.org> Date: Sat, 07 Oct 2023 19:39:52 +0200 In-Reply-To: <83mswuzagx.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 07 Oct 2023 19:03:10 +0300") Message-ID: <87h6n2nxg7.fsf@sappc2.fritz.box> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-purgate-type: clean X-purgate: clean X-purgate-size: 1116 X-purgate-ID: 155817::1696700399-94FF7E6D-BC010802/0/0 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 66218 Cc: 66218@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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? From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 07 14:23:01 2023 Received: (at 66218) by debbugs.gnu.org; 7 Oct 2023 18:23:01 +0000 Received: from localhost ([127.0.0.1]:55882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpBx6-0001S4-OF for submit@debbugs.gnu.org; Sat, 07 Oct 2023 14:23:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpBx4-0001Rp-9S for 66218@debbugs.gnu.org; Sat, 07 Oct 2023 14:22:58 -0400 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 1qpBwe-0000Af-L8; Sat, 07 Oct 2023 14:22:32 -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=A63yXfmRktJs1adZICDd0EaJy/nqCK3cpmBirx5wYio=; b=EP9931fn2yQr JEIctbMc1ryMARD7PG08ZzaH1gNTUuiABc9wagSfmnS8E0Qm6tVJIrGRrv1DmoXLFNcBfhUGRND2T 7faM95ik12lTZqOPRnaky6qiLi0W1tBI27yWQXRnHvBHzVRS3cflBG+S6ASNanLFbjGmJ0g17nRH8 DZqqp0XhI3VlTgI3tYlgYFvrIyZ/25nQAPiGb8le0nnkRPD4EjaxUZv2LqbI2HSiYGGDtk/1wm78n 2JX1coZK0F41zyGp4qHkdXVri5UnalQpPgMHyEgk3Sdp+J/aS7PAxO1aP0t40kgGa1hXeoYYoQLe7 dnQSU/GRQCh1M1KX7+KCbA==; Date: Sat, 07 Oct 2023 21:22:44 +0300 Message-Id: <83il7iz40b.fsf@gnu.org> From: Eli Zaretskii To: Jens Schmidt In-Reply-To: <87h6n2nxg7.fsf@sappc2.fritz.box> (message from Jens Schmidt on Sat, 07 Oct 2023 19:39:52 +0200) Subject: Re: bug#66218: 29.1.50; `beginning-of-defun' jumps to wrong position in `emacs-lisp-mode' References: <87bkdbpn6n.fsf@sappc2.fritz.box> <83lecf0xt0.fsf@gnu.org> <87leceo2ns.fsf@sappc2.fritz.box> <83mswuzagx.fsf@gnu.org> <87h6n2nxg7.fsf@sappc2.fritz.box> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66218 Cc: 66218@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Jens Schmidt > Cc: 66218@debbugs.gnu.org > Date: Sat, 07 Oct 2023 19:39:52 +0200 > > 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. Then I think we have no reason to rush with fixing this on emacs-29. > 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. Yes. > > 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? No patch is "innocent" in Emacs, believe me. But yes, even so. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 07 16:32:31 2023 Received: (at 66218) by debbugs.gnu.org; 7 Oct 2023 20:32:31 +0000 Received: from localhost ([127.0.0.1]:55984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpDyR-00069b-1k for submit@debbugs.gnu.org; Sat, 07 Oct 2023 16:32:31 -0400 Received: from mr4.vodafonemail.de ([145.253.228.164]:54982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpDyM-00069K-Q0 for 66218@debbugs.gnu.org; Sat, 07 Oct 2023 16:32:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-21dec; t=1696710721; bh=GaeQtnY3lntckLJPHbShCL9WjpN2MqH4HIpHNKC5JOQ=; h=From:To:Subject:References:Date:In-Reply-To:Message-ID:User-Agent: Content-Type:From; b=ksZ/32XhPHQ+q6F27tU4WHuCWgmTKm+TQ1sXxr1QSjLuxFItO2se6Rjl9xML6lXvl 6yJl/2nt80QyVAHCO5Bk+zWZmfUbktOKzv30XFXQ1t87kh3u4pdUHK9erbnLcSXHbv ORjQiKy6RBGS+AyAk3LjiBAQvUNIUnui4PzcprbY= 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 mr4.vodafonemail.de (Postfix) with ESMTPS id 4S2xmK531Dz1xxB; Sat, 7 Oct 2023 20:32:01 +0000 (UTC) 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 4S2xmB0hbCzHpxc; Sat, 7 Oct 2023 20:31:50 +0000 (UTC) From: Jens Schmidt To: Eli Zaretskii Subject: Re: bug#66218: 29.1.50; `beginning-of-defun' jumps to wrong position in `emacs-lisp-mode' References: <87bkdbpn6n.fsf@sappc2.fritz.box> <83lecf0xt0.fsf@gnu.org> <87leceo2ns.fsf@sappc2.fritz.box> <83mswuzagx.fsf@gnu.org> <87h6n2nxg7.fsf@sappc2.fritz.box> <83il7iz40b.fsf@gnu.org> Date: Sat, 07 Oct 2023 22:31:50 +0200 In-Reply-To: <83il7iz40b.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 07 Oct 2023 21:22:44 +0300") Message-ID: <87a5sunphl.fsf@sappc2.fritz.box> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-purgate-type: clean X-purgate: clean X-purgate-size: 2704 X-purgate-ID: 155817::1696710717-E3FFE18D-5B14DC30/0/0 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 66218 Cc: 66218@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Eli Zaretskii writes: >> From: Jens Schmidt >> Cc: 66218@debbugs.gnu.org >> Date: Sat, 07 Oct 2023 19:39:52 +0200 >> Even if the patch is so innocent as adding a `save-match-data' in the >> right place? > > No patch is "innocent" in Emacs, believe me. But yes, even so. Please let me summarize (plus one new point): - This bug is hard to reproduce, also due to its asynchronous nature. - It might not affect many users, but if one is affected, it might be highly confusing. I could imagine a report like "If I press C-M-a at the end of a very long function, it sometimes does not jump to the beginning of that function." just because under some circumstances the beginning of that function might not have been propertized yet. - The fix is a rather light-weight and IMO obvious change: Use `save-match-data' when you want to keep your match data save. If that does not convince you for Emacs 29, fine with me, let's go for master, then. Updated patch attached. Thanks. Just for the record: A work-around on Emacs 29 would be to set `syntax-propertize-function' to nil in `emacs-lisp-mode'. Or to advise function `syntax-ppss' to save match data. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Fix-beginning-of-defun-not-jumping-to-BOF.patch >From 31564be89042e5a4184fa7b8e29d200f30ec596e Mon Sep 17 00:00:00 2001 From: Jens Schmidt Date: Tue, 26 Sep 2023 21:36:19 +0200 Subject: [PATCH] Fix beginning-of-defun not jumping to BOF In batch mode or when font-lock and some other niceties are switched off, function `syntax-ppss' can modify match data held by function `beginning-of-defun-raw'. In that case, `beginning-of-defun' can jump to some seemingly arbitrary position, and not the actual BOF. * lisp/emacs-lisp/lisp.el (beginning-of-defun-raw): Save match data around a call to `syntax-ppss'. (Bug#66218) --- lisp/emacs-lisp/lisp.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el index a4aa79c171e..ee481dc4ed3 100644 --- a/lisp/emacs-lisp/lisp.el +++ b/lisp/emacs-lisp/lisp.el @@ -422,7 +422,8 @@ beginning-of-defun-raw "\\(?:" defun-prompt-regexp "\\)\\s(") "^\\s(") nil 'move arg)) - (nth 8 (syntax-ppss)))) + (save-match-data + (nth 8 (syntax-ppss))))) found) (progn (goto-char (1- (match-end 0))) t))) -- 2.30.2 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 14 04:04:08 2023 Received: (at 66218-done) by debbugs.gnu.org; 14 Oct 2023 08:04:08 +0000 Received: from localhost ([127.0.0.1]:47805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrZd2-0006Kg-Bx for submit@debbugs.gnu.org; Sat, 14 Oct 2023 04:04:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrZd0-0006KA-IY for 66218-done@debbugs.gnu.org; Sat, 14 Oct 2023 04:04:07 -0400 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 1qrZcX-0000dc-3P; Sat, 14 Oct 2023 04:03:37 -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=EGuSMRVW+tpcGfsf7vam2plbl9Rp3LpLwUaLDUdSx18=; b=qjBwSaIaEq/F +dPyDZwP1xMIOFsbetAq1NjJeWDN0msVF9r5kSiI9rF6/B9vtR/JMc6J0SCNgC1PKmNjLC5K4L83X brkZ3zhD1XzB2V4sf08gaO6oUi9KXFu1wpKEsnLMsEMTGIgLsb13JcK1QJaGdLoQJho6xX6ISho7F OnAR1NzexDlE11W5HFdOkKDBRrrB3iR3fSChV3wWywlVa56yhGwHBw1iSqmttQETO79p4hHYVOTea TsPy312QWkpa4zrK4buasOuC6x4y5ZCcbSpjvwg71hXT+9ESM3J8YEfYad8bOfHErptwVU4wMkaPt 0M+WyA96TyutJXeUZFGexQ==; Date: Sat, 14 Oct 2023 11:03:37 +0300 Message-Id: <83edhxsk9y.fsf@gnu.org> From: Eli Zaretskii To: Jens Schmidt In-Reply-To: <87a5sunphl.fsf@sappc2.fritz.box> (message from Jens Schmidt on Sat, 07 Oct 2023 22:31:50 +0200) Subject: Re: bug#66218: 29.1.50; `beginning-of-defun' jumps to wrong position in `emacs-lisp-mode' References: <87bkdbpn6n.fsf@sappc2.fritz.box> <83lecf0xt0.fsf@gnu.org> <87leceo2ns.fsf@sappc2.fritz.box> <83mswuzagx.fsf@gnu.org> <87h6n2nxg7.fsf@sappc2.fritz.box> <83il7iz40b.fsf@gnu.org> <87a5sunphl.fsf@sappc2.fritz.box> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66218-done Cc: 66218-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Jens Schmidt > Cc: 66218@debbugs.gnu.org > Date: Sat, 07 Oct 2023 22:31:50 +0200 > > If that does not convince you for Emacs 29, fine with me, let's go for > master, then. Updated patch attached. > > Thanks. > > Just for the record: A work-around on Emacs 29 would be to set > `syntax-propertize-function' to nil in `emacs-lisp-mode'. Or to advise > function `syntax-ppss' to save match data. Thanks, installed on master, and closing the bug. From unknown Tue Jun 17 01:43:00 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 11 Nov 2023 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator