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#65451: 30.0.50; `after-change-functions' are not triggered in the same order the changes are made Date: Sun, 07 Apr 2024 14:19:01 -0400 Message-ID: References: <871qfv2zlk.fsf@localhost> <83a5ujtgfo.fsf@gnu.org> 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="24533"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Alan Mackenzie , Ihor Radchenko , 65451@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 07 20:20:35 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 1rtX86-0006Fk-Ju for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Apr 2024 20:20:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rtX7V-00048F-Dv; Sun, 07 Apr 2024 14:19:57 -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 1rtX7T-00047H-8J for bug-gnu-emacs@gnu.org; Sun, 07 Apr 2024 14:19:55 -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 1rtX7S-0007Ri-UR for bug-gnu-emacs@gnu.org; Sun, 07 Apr 2024 14:19:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rtX7Z-0005og-QB for bug-gnu-emacs@gnu.org; Sun, 07 Apr 2024 14:20: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: Sun, 07 Apr 2024 18:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65451 X-GNU-PR-Package: emacs Original-Received: via spool by 65451-submit@debbugs.gnu.org id=B65451.171251396022105 (code B ref 65451); Sun, 07 Apr 2024 18:20:01 +0000 Original-Received: (at 65451) by debbugs.gnu.org; 7 Apr 2024 18:19:20 +0000 Original-Received: from localhost ([127.0.0.1]:44553 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtX6u-0005kS-58 for submit@debbugs.gnu.org; Sun, 07 Apr 2024 14:19:20 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:41208) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtX6s-0005jh-5d for 65451@debbugs.gnu.org; Sun, 07 Apr 2024 14:19:18 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 0F097441195; Sun, 7 Apr 2024 14:19:04 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1712513943; bh=cIFFf3JisuXcH8RU0G9gbrYcYwtBmpeXxMWJWpmFVZU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=IdbqGr/Aqo5115MueEud3IoQNsQN/AGKgVmi6mL8AwqXNRmmCpZuROiNFia13Q3XE eQzl2h294EvJKn1ymcKC9ABFWm09Fdn01zHql4NaNoqkmDv6IvHikLpoUiPBIXiZAt BDBDCb8OwY6GipoqbNixdqziaktNxGpvY05MPXtfhZX60Se4vp80M6sxm3sbK1n9HA Ct/rxHHEvBoWZThNnLosBs/DpoUaE83Ynzt/r4jl/38hKRKZCPbjciRWk5Le3/p3Xa uu5bZceZT6DuKNjm4nZxi1HqozBPutSEgTKep29FGd05RcYOEzqi4QtoA1ozhi7MLo lxBo5F4IHV3Tw== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 027A24410EA; Sun, 7 Apr 2024 14:19:03 -0400 (EDT) Original-Received: from alfajor (unknown [45.72.201.215]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id BDF96120648; Sun, 7 Apr 2024 14:19:02 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Sat, 30 Mar 2024 23:02:14 -0400") 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:282888 Archived-At: > A simpler option is the patch below. Pushed to `master` along with a corresponding test. The test uses a "sanity check" suite which encodes the promises we make after before/after-change-functions. [ My Emacs now runs those sanity checks in all non-temp buffers. =F0=9F=99= =82 ] Stefan