From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko 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: Fri, 25 Aug 2023 09:09:11 +0000 Message-ID: <87o7ivh4js.fsf@localhost> References: <871qfv2zlk.fsf@localhost> <83a5ujtgfo.fsf@gnu.org> <87jztn1c5x.fsf@localhost> <834jkrters.fsf@gnu.org> <87v8d7i48y.fsf@localhost> <83ttsrrroo.fsf@gnu.org> <874jkq87jl.fsf@localhost> <83y1i1r689.fsf@gnu.org> <87fs487uip.fsf@localhost> <83zg2gq2vj.fsf@gnu.org> <871qfsel8q.fsf@localhost> <83r0nsprrk.fsf@gnu.org> <87cyzck1uh.fsf@localhost> <83il94pk49.fsf@gnu.org> <83pm3bocea.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34033"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, 65451@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 25 11:09:23 2023 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 1qZSol-0008au-HO for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Aug 2023 11:09:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZSoQ-00023x-BK; Fri, 25 Aug 2023 05:09:02 -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 1qZSoN-00023a-RM for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2023 05:08:59 -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 1qZSoL-0006ti-IR for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2023 05:08:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qZSoP-00024t-LN for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2023 05:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Aug 2023 09:09: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.16929545357974 (code B ref 65451); Fri, 25 Aug 2023 09:09:01 +0000 Original-Received: (at 65451) by debbugs.gnu.org; 25 Aug 2023 09:08:55 +0000 Original-Received: from localhost ([127.0.0.1]:39259 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZSoI-00024Y-Ii for submit@debbugs.gnu.org; Fri, 25 Aug 2023 05:08:54 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:54907) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZSoG-00024J-Qt for 65451@debbugs.gnu.org; Fri, 25 Aug 2023 05:08:53 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 4784F240028 for <65451@debbugs.gnu.org>; Fri, 25 Aug 2023 11:08:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1692954522; bh=UEA4FbM4FDLrl6DndmMehYXjn9XODoCeHO6/F3l4OAo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=Q2j5GHhOZUG7n4IuYkP/+I8G4ei9dk3XUT/JkS1tsfQeqkOdmecbDjZXo0yHH00+8 LdxRxm48Vo2MM5IUk2CO6buTbuVnmfjDIHJxZV6lVh5POAYINM7Q0bUaK2umOwrC+5 1n/wSON2WkW9QSwg+T3JCZwSl00G0d+QXuE53jPl8HQPSntMSMjgX9R+yiMrXjaAL7 mwnyVkU+wBzk3Z5wwufhgofYq0akBfbSl5pxRRX4fPK5DqNq662sUJd3SRuLVJpLf9 B55zDeL6j/SmXr4Iq0sF1ALxHZkgvSOSUQ9H23ZC+jC5CCddasVfTQa9ubOlje90bk e6BrQ1LLPGBUw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RXDdj3NLvz9rxK; Fri, 25 Aug 2023 11:08:41 +0200 (CEST) In-Reply-To: <83pm3bocea.fsf@gnu.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:268418 Archived-At: Eli Zaretskii writes: > Thinking about this some more, we will need to consider whether this > list of accumulated transactions is ever compacted by deleting old > transactions, or we let it grow indefinitely. If the former, we > should consider the case where more than one feature wants to track > buffer edits (so it is impossible to remove entries once they have > been processed by a single consumer). What I propose is actually quite similar to `buffer-undo-list'. But a bit less generic - (apply FUN-NAME ARGS) entries cannot be handled outside the narrow scope of `undo'. Similar to `buffer-undo-list' it needs to be compacted. To not lose the information when the edit history is compacted, there may be a hook executed right before the compaction, so that all the users can update their state as needed. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at