From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#73548: 31.0.50; track-changes--error-log Date: Thu, 03 Oct 2024 11:15:10 -0400 Message-ID: References: Reply-To: Stefan Monnier 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="14128"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 73548@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 03 17:16:11 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 1swNYp-0003TM-BS for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Oct 2024 17:16:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1swNYg-0002Ot-SW; Thu, 03 Oct 2024 11:16:03 -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 1swNYe-0002Ok-PP for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2024 11:16:01 -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 1swNYe-0002Aa-Ar for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2024 11:16:00 -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:Date:References:In-Reply-To:From:To:Subject; bh=oOe6ZdBsScyRWwlPlaN8i2DfoLztPWGv6nV7pfN3CdI=; b=VFZ1H5S/G4cIvXnhsvEoGwJwnrBIrkaBiYYKB7XvSR9dEfhYztdWiBrZlxyi6zdI76LzMG2YjxJmPz1tOKfZKRjW09DKMpDP9qVs+BUI8hNGML4Aofbio03IRnU+8YcJQ29crZGdo3pjBgXkku2+MBfL8K+trA0BRl51f7ND8srzXLAgiWxm5FpmAdaGmppzw9iS8zDkmV3hAsZ/zu3xU0ay+miVP844IgxzJU1eQncBiwkFldW5AFjBqKa2ltJ991xIMsCD8qIb7ZUpVF4LS8H1E+Dj5yYaQ6xrfnhrN4Aogx7RgeTHKdKBE7bY0PYmP+EE9hWXi3ZYA4QdWDUXrg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1swNYf-0001eU-Sf for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2024 11:16:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Oct 2024 15:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73548 X-GNU-PR-Package: emacs Original-Received: via spool by 73548-submit@debbugs.gnu.org id=B73548.17279685216298 (code B ref 73548); Thu, 03 Oct 2024 15:16:01 +0000 Original-Received: (at 73548) by debbugs.gnu.org; 3 Oct 2024 15:15:21 +0000 Original-Received: from localhost ([127.0.0.1]:33733 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1swNY1-0001dW-CN for submit@debbugs.gnu.org; Thu, 03 Oct 2024 11:15:21 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:37735) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1swNXz-0001dJ-F6 for 73548@debbugs.gnu.org; Thu, 03 Oct 2024 11:15:20 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id DD9C4100046; Thu, 3 Oct 2024 11:15:11 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1727968511; bh=BPZybt5vuYhMnD3xIRXi5aWsx7GvZ7eLH14egj7aFqU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=oFNs5DOO/DFSvlrrLJ3e45X7VaPIivK33bnTuyuKko8/Z/Sgr1hy2oDElHLKX1Pk6 GH3rDmljNiwl38p8ei1IKByVknZ1IT/ZBxvnZMYO0M51xRnGVr4celWTC44weAyYzZ Yu1kuZO47kgcN6Ws6aNRwxR2j9ePQHMU5ijHgZpqo0IhWBuVImY7TrAy9skTBCqnFU sMMxR4rfriTls9azT7qxS0mTML2xs/85nkgjhDZo04/6+imTkFHfxeHw04P+6tB8qv Qlx3p3RmhcXqdL1GWVXrHaWgCie9Fp3UewuiKr4N6hs3saaffly7CJfhEGm6KMT235 TZdA9VSC6CABw== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 35B20100042; Thu, 3 Oct 2024 11:15:11 -0400 (EDT) Original-Received: from alfajor (modemcable005.21-80-70.mc.videotron.ca [70.80.21.5]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 14582120313; Thu, 3 Oct 2024 11:15:11 -0400 (EDT) In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Sun, 29 Sep 2024 09:32:04 +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:292912 Archived-At: Hi Gerd, > This is a warning I got today while editing a C file. No idea how to > reproduce, I'm afraid. This is master on a terminal frame. > > =E2=96=A0 Warning (emacs): Missing/incorrect calls to =E2=80=98before= /after-change-functions=E2=80=99!! > Details logged to =E2=80=98track-changes--error-log=E2=80=99 > > track-changes--error-log is a variable defined in =E2=80=98track-changes.= el=E2=80=99. > > Its value is shown below. > > List of errors encountered. > Each element is a triplet (BUFFER-NAME BACKTRACE RECENT-KEYS). > > Value: > (("frame.h" #1=3D(unexpected-after 47748 47748 1) > ((t track-changes--recover-from-error (#1#) nil) > (t track-changes--after (47748 47748 1) nil) > (t delete-char (-1 nil) nil) (t delete-backward-char (1 nil) nil) > (t backward-delete-char-untabify (1) nil) > (t c-electric-backspace (nil) nil) > (t funcall-interactively (c-electric-backspace nil) nil) > (t call-interactively (c-electric-backspace nil nil) nil) > (t command-execute (c-electric-backspace) nil)) > [86 (nil . self-insert-command) 73 (nil . self-insert-command) 83 > (nil . self-insert-command) 73 (nil . self-insert-command) 66 > (nil . self-insert-command) 76 (nil . self-insert-command) 69 > (nil . self-insert-command) 32 (nil . self-insert-command) 40 > (nil . c-electric-paren) 127 (nil . c-electric-backspace)])) Hmm... the recent-keys only include "harmless" commands which definitely should not trigger those "unexpected-after" problems. The problem that track-changes reports here is that the call to `after-change-functions` specified a region that's (apparently) outside the area specified by the previous `before-change-functions`. Since this is within `delete-char` (according to the backtrace), it's very weird: `delete-char` is a very basic case where such an error should have been noticed many years ago. Do you remember if there might have been other buffer changes during this `delete-char` e.g. because of some other package hooked (directly or not) into one of the `*-change-functions`? Stefan