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: Sun, 27 Aug 2023 08:13:38 +0000 Message-ID: <87pm38gax9.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> <87o7ivh4js.fsf@localhost> <83cyzamg8l.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="34995"; 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 Sun Aug 27 10:14:12 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 1qaAuS-0008wQ-DO for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Aug 2023 10:14:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qaAuE-0000Jz-R8; Sun, 27 Aug 2023 04:13:58 -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 1qaAuD-0000JX-7c for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2023 04:13:57 -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 1qaAuC-0007WB-UD for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2023 04:13:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qaAuI-0003I2-HA for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2023 04:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Aug 2023 08:14: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.169312401312601 (code B ref 65451); Sun, 27 Aug 2023 08:14:02 +0000 Original-Received: (at 65451) by debbugs.gnu.org; 27 Aug 2023 08:13:33 +0000 Original-Received: from localhost ([127.0.0.1]:44045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaAto-0003HB-QH for submit@debbugs.gnu.org; Sun, 27 Aug 2023 04:13:33 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:55323) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaAtj-0003Gt-Sd for 65451@debbugs.gnu.org; Sun, 27 Aug 2023 04:13:31 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 61D08240103 for <65451@debbugs.gnu.org>; Sun, 27 Aug 2023 10:13:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1693123996; bh=KMxcHyTQ1kCA4WLRTXrAE6X/LvkkG39qlruKtBUmI2A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=WdDMFYQSCxYgbp+g3A7E8yiFN4OiIXiyM9f6LUZgjQXWOW628DUhqsJfkBo8I4z7E vW8JAiAghXgwx38jGuTApNMZNIE3YgdNNoLj/zolvfHgVuizqRb8LW6zSUeHENuyP5 EEe3urcsTqWWTN/cMqVgLgXGobXvzO++oPP0QJ+V+eBG05Sg688+jUITaenatS1gDI UmgEFmL8elaO8pscN7EliYAHcQu7/zW9rhZaM5jIVzApmVFdpvfGliQ4t9vLImRi6O xQlTgqmUgx0qRhIA11Ow8AArTChmymXYe4xYnRPNEthq8r6XOH3kERCE1m9Yx5TPM1 SO5OiHwXnY80A== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RYRJq4Ky9z9rxL; Sun, 27 Aug 2023 10:13:15 +0200 (CEST) In-Reply-To: <83cyzamg8l.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:268545 Archived-At: Eli Zaretskii writes: >> 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. > > Not sure what this means in practice. the entries in the list we are > discussing will be very different from the entries in > buffer-undo-list. What I meant is that similar principles with undo-limit-like variables may apply. >> 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. > > If the compaction will run from GC, then we cannot safely call Lisp > hooks at that time. Fair point. Then, what about compacting the "edit list" more frequently, so that we do not need to worry about its size? But I am not sure what frequency will be safe. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at