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#73041: 30.0.90; track-changes-mode logs warnings (#70541 regression? not actually fixed?) Date: Thu, 05 Sep 2024 16:54:34 +0300 Message-ID: <86zfom2okl.fsf@gnu.org> References: <87ed5yfcve.fsf@pretzelnet.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32427"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73041@debbugs.gnu.org To: epg@pretzelnet.org, Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 05 16:06:20 2024 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 1smD7s-0008DH-7u for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Sep 2024 16:06:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smD7Y-0007km-2e; Thu, 05 Sep 2024 10:06:00 -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 1smD7V-0007kV-Bn for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2024 10:05:57 -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 1smD7V-0006mR-1V for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2024 10:05:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:From:Date:To:Subject; bh=7om8+Iye48L8OPKQhIyYRM5BcW7RChPpq47TEinp8Ro=; b=pTDKOEW16vPcatl4qu7gwwfoM71psHxNl7WJxq4iPusnjpr29r5I9+79C4rSEEwYbq3TrUrlnNfIKe6Ml3kI5EyGZIWl2nEWvXmW1oDb6VNRdAZXw44BV+73KAQYP/xY0d6zZicQtpaIrM8jc149R12HYYRgFqL3tMvkxCoszYX1b6DQiUhqcspS1PUYsDNZSUxXBIrV+oWdlq7y2kW7MZGCwB6VAhr1g8Fy5R3CP1qdJ08tdexhnfIMms0KsSCaPyKtBEBFIclg79PhC3cH3kaVSeLqDkIwOS1HaLY6YIzmA/upXwbrYj85IRH4lO6iqpoz8N1zLTeAyhr+2gkyOw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1smD8Y-0004Kf-2x for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2024 10:07: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: Thu, 05 Sep 2024 14:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73041 X-GNU-PR-Package: emacs Original-Received: via spool by 73041-submit@debbugs.gnu.org id=B73041.172554520616612 (code B ref 73041); Thu, 05 Sep 2024 14:07:02 +0000 Original-Received: (at 73041) by debbugs.gnu.org; 5 Sep 2024 14:06:46 +0000 Original-Received: from localhost ([127.0.0.1]:37729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smD8H-0004Jg-Mn for submit@debbugs.gnu.org; Thu, 05 Sep 2024 10:06:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smD8F-0004J3-Un for 73041@debbugs.gnu.org; Thu, 05 Sep 2024 10:06:44 -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 1smCwW-0004UZ-RZ; Thu, 05 Sep 2024 09:54:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:Subject:In-Reply-To:To:From: Date; bh=7om8+Iye48L8OPKQhIyYRM5BcW7RChPpq47TEinp8Ro=; b=VFLaEErpdR6rG1LajHYw Ddz38Pjh8tfpuCWQLtM2+VHn3BT+uY2DmEZvOcOs07CqNpK97eKvNGxKQiQS4YYjZGz+c9XhgOgCb I39twaFEKBnexUUwfYgXOP72Ebkc1FTe7ate1mAdQwwidipMggzhNBZ7dHpMk0wZnVnMPtLnn1HUv +nDQcyD3/8vf9aKDe6omA0WyQhTSwtqEkr5tyizC6WBy6H9nyOTHP1Oq7BNgvTakD1NVb5eDyig5q Y+IQXFbviKAJ4fyd5TxMR8qRQ6CqqamVjHlfbSOpBlVRSw1D5oPEjS/phfWyHPvmW8Ou+HrOCER0i X5HkRernA8Dohg==; In-Reply-To: <87ed5yfcve.fsf@pretzelnet.org> (epg@pretzelnet.org) 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:291256 Archived-At: > From: epg@pretzelnet.org > Date: Thu, 05 Sep 2024 08:28:53 -0500 >=20 > I wish I could describe exactly what happened. I found > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D70541 which sounds > very much like what I'm seeing, but I don't use any input method. >=20 > What I can say: >=20 > - I use rust-mode (not rust-ts-mode) > - I use eglot (config below) > - I use rust-analyzer 1.80.1 (3f5fd8d 2024-08-06) > - The problem seems to happen deep into a work day, after many > commits, reverts, etc. >=20 > My eglot configuration: >=20 > #+begin_src elisp > (setq > eglot-extend-to-xref t > eglot-ignored-server-capabilities > '( > :inlayHintProvider > :documentOnTypeFormattingProvider > ) > ) > #+end_src >=20 > Eventually, this pops into *Messages*: >=20 > #+begin_quote > cl--assertion-failed: Assertion failed: (or track-changes--before-no (<= =3D track-changes--before-beg (track-changes--state-beg track-changes--stat= e) beg end (track-changes--state-end track-changes--state) track-changes--b= efore-end)) > #+end_quote >=20 > And this in *Warnings*: >=20 > #+begin_quote > =E2=9B=94 Warning (emacs): Missing/incorrect calls to =E2=80=98before/aft= er-change-functions=E2=80=99!! > Details logged to =E2=80=98track-changes--error-log=E2=80=99 > #+end_quote >=20 > Over time, they just keep repeating, although I think killing the > buffer and reopening the file makes it stop. >=20 > If I have inspected =E2=80=98track-changes--error-log=E2=80=99 correctly,= this is > what it contains (looks like some binary, hope it comes through > in some useful fashion or another): >=20 > #+begin_quote > (("lib.rs" (buffer-size 5254 5218) ((t track-changes--recover-from-error = ... nil) (t track-changes-fetch ... nil) (t eglot--track-changes-fetch ... = nil) (t eglot--signal-textDocument/didChange nil nil) (t eglot--signal-text= Document/didSave nil nil) (t run-hooks ... nil) (t basic-save-buffer ... ni= l) (t save-buffer ... nil) (t funcall-interactively ... nil) (t call-intera= ctively ... nil) (t command-execute ... nil)) [111 (nil . other-window) 103= (nil . recompile) 121 (nil . undefined) 24 96 (nil . next-error) 1 (nil . = move-beginning-of-line) 11 ...]) ("lib.rs" (buffer-size 5256 5254) ((t trac= k-changes--recover-from-error ... nil) (t track-changes-fetch ... nil) (t e= glot--track-changes-fetch ... nil) (t eglot--signal-textDocument/didChange = nil nil) (t eglot--signal-textDocument/didSave nil nil) (t run-hooks ... ni= l) (t basic-save-buffer ... nil) (t save-buffer nil nil) (t #[257 "r\211q\2= 10\300 )\207" [save-buffer] 2 ...] ... nil) (t map-y-or-n-p ... nil) (t sav= e-some-buffers ... nil) (t recompile ... nil) ...) [19 (nil . save-buffer) = 24 24 (nil . exchange-point-and-mark) 23 (nil . kill-region) 24 19 (nil . s= ave-buffer) backspace (nil . delete-backward-char) ...]) ("lib.rs" (buffer-= size 5278 5256) ((t track-changes--recover-from-error ... nil) (t track-cha= nges-fetch ... nil) (t eglot--track-changes-fetch ... nil) (t eglot--signal= -textDocument/didChange nil nil) (t eglot--signal-textDocument/didSave nil = nil) (t run-hooks ... nil) (t basic-save-buffer ... nil) (t save-buffer ...= nil) (t funcall-interactively ... nil) (t call-interactively ... nil) (t c= ommand-execute ... nil)) [(nil . backward-word) 2 (nil . backward-char) 671= 08896 (nil . set-mark-command) 134217734 (nil . forward-sexp) 23 (nil . kil= l-region) 24 19 (nil . save-buffer) ...]) ("lib.rs" (buffer-size 5324 5278)= ((t track-changes--recover-from-error ... nil) (t track-changes-fetch ... = nil) (t eglot--track-changes-fetch ... nil) (t eglot--track-changes-signal = ... nil) (t #[771 "\211^BZ\211^HG^E]=09 > #+end_quote >=20 > I wish I could reliably repeat it. Given that it occurs after > many hours of work, `emacs -Q` isn't an option. Adding Stefan.