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: Sun, 31 Mar 2024 09:06:44 +0300 Message-ID: <86r0fraqa3.fsf@gnu.org> References: <871qfv2zlk.fsf@localhost> <83a5ujtgfo.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24500"; 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 Sun Mar 31 08:07:09 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 1rqoLV-0006Ao-6Q for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Mar 2024 08:07:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqoLN-0008Jh-DK; Sun, 31 Mar 2024 02:07:01 -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 1rqoLM-0008JK-2F for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2024 02:07:00 -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 1rqoLL-0003os-Om for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2024 02:06:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rqoLN-0001aR-OM for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2024 02:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Mar 2024 06:07: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.17118652196089 (code B ref 65451); Sun, 31 Mar 2024 06:07:01 +0000 Original-Received: (at 65451) by debbugs.gnu.org; 31 Mar 2024 06:06:59 +0000 Original-Received: from localhost ([127.0.0.1]:46476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqoLK-0001a8-JH for submit@debbugs.gnu.org; Sun, 31 Mar 2024 02:06:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqoLI-0001ZI-NT for 65451@debbugs.gnu.org; Sun, 31 Mar 2024 02:06:57 -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 1rqoL8-0003mS-6X; Sun, 31 Mar 2024 02:06:46 -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=SFzZTB4W3KGixFAlMFEK4XdT330w3EbXTSAj84uB19g=; b=gpR6dLS8tc3OJN96wfhj Tp6xhNW9qDn3JSW0+ur8VcYYnzfUjn1aGNKn9xlTmqLV3nBvLs7O6PLN/2x1hMQ3gZn/KVGucrwF2 /06ymSjS4rTMqyMlwAf+f9lwK0nCWdQ1gqV9ecGhr+rD/7cS/C+ZaY02bdjF2LmqktiDfUcQsxrrx cQtU/sLqGO2+aj/KErkxiK7FmElTn0vdI8dJ/HRtVHU/8+xQtlwDiYILX2aGtpcxvTGmeN8APj7k7 mYxJuwMWnvLTezWC/7bnlu85ivwq8CthLjf6NCSPWo9p0TxEFcy2EgIjFPL7G3KYjIbnssmguSgHP 9D2L7vze8PzUaQ==; In-Reply-To: (message from Stefan Monnier on 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:282413 Archived-At: > From: Stefan Monnier > Cc: Ihor Radchenko , 65451@debbugs.gnu.org, Alan > Mackenzie > Date: Sat, 30 Mar 2024 23:02:14 -0400 > > > I suspect the best option in the above case is to inhibit the inner > > calls to before/after (assuming we're sure they change only the "new > > text"), so we'd be down to: > > > > ⛔ Warning (emacs): Before: 1278 1281 > > ⛔ Warning (emacs): After: 1278 1288 delta: 7 > > A simpler option is the patch below. Doesn't that miss the changes done by upcase-region? Also, what about point not being after the inserted replacement at that place?