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#65451: 30.0.50; `after-change-functions' are not triggered in the same order the changes are made Date: Sat, 30 Mar 2024 19:47:38 +0300 Message-ID: <865xx3d5ud.fsf@gnu.org> References: <871qfv2zlk.fsf@localhost> <83a5ujtgfo.fsf@gnu.org> <86frw7dd3d.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32175"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, yantar92@posteo.net, 65451@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 30 17:48:18 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 1rqbsQ-00089r-1t for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Mar 2024 17:48:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqbsB-00054L-Q6; Sat, 30 Mar 2024 12:48: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 1rqbs8-00054C-QN for bug-gnu-emacs@gnu.org; Sat, 30 Mar 2024 12:48: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 1rqbs8-0002FD-IC for bug-gnu-emacs@gnu.org; Sat, 30 Mar 2024 12:48:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rqbsA-0001iw-HB for bug-gnu-emacs@gnu.org; Sat, 30 Mar 2024 12:48: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: Sat, 30 Mar 2024 16:48:02 +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.17118172736572 (code B ref 65451); Sat, 30 Mar 2024 16:48:02 +0000 Original-Received: (at 65451) by debbugs.gnu.org; 30 Mar 2024 16:47:53 +0000 Original-Received: from localhost ([127.0.0.1]:46109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqbs0-0001hv-QX for submit@debbugs.gnu.org; Sat, 30 Mar 2024 12:47:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57168) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqbrx-0001gv-Hr for 65451@debbugs.gnu.org; Sat, 30 Mar 2024 12:47:51 -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 1rqbrq-0002Dk-7s; Sat, 30 Mar 2024 12:47:42 -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=ZFH9wdQWjbpNyaORZHdx0qMaIQ88S+iR9Dp50rLWYwk=; b=DKj9kQhLq4NT NEC+JpIJTDrmiQaKgcj3vfFKioG7y3C9/HOuuFuzR40ghIw0Llw/+KcMHXh5ivQkkgEVRO1zns+1m +QbW+VzCsww6K0EH5+i2t9WgmqS551BFqlN62PB13U5k6O19uYvOXObdtNSAPkouNZgNxdK26lfFV rxjWzI5AFoLSKH0jg8qLbwpKnYZDYhkW+6BV/aGmhNpOgzLeA4tdMTA0EvyrLJsGKiYwHGPPk3uO0 WjPDX8e3vrhbBXPrpwv3g5bX8OQ78W2pf8VOlnb2/kX74sbN5ZvD3ADo1qdRa2hmbC8fpgQUeHqkw AY3vD8xqHngJprc/L2ePeA==; In-Reply-To: (message from Stefan Monnier on Sat, 30 Mar 2024 11:38:24 -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:282387 Archived-At: > From: Stefan Monnier > Cc: yantar92@posteo.net, 65451@debbugs.gnu.org, acm@muc.de > Date: Sat, 30 Mar 2024 11:38:24 -0400 > > > I still stand by my opinion: Org is relying on something it cannot > > rely upon, not as long as a function that changes a buffer can be > > called from another function which changes the same buffer. > > `*-change-functions` should not modify the buffer That's not what happened in the case described in that bug, AFAIR. Simply a buffer change started, then, before it ended, another nested change was started. > so the only cases I can think of where "a function that changes a > buffer can be called from another function which changes the same > buffer" is when both of those functions are in our C code and we > should have enough control to fix those cases. You forget the various hooks, other than buffer modification hooks. > Alan did convince me that we should treat them as bugs and that we > should try and fix them. He didn't convince me.