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#70077: An easier way to track buffer changes Date: Sat, 30 Mar 2024 19:45:02 +0300 Message-ID: <867chjd5yp.fsf@gnu.org> References: <86frw8ewk9.fsf@gnu.org> <86cyrcdy80.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21917"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yantar92@posteo.net, 70077@debbugs.gnu.org, casouri@gmail.com, qhong@alum.mit.edu, frederic.bour@lakaban.net, joaotavora@gmail.com, mail@nicolasgoaziou.fr, acm@muc.de, stephen_leake@stephe-leake.org, alan.zimm@gmail.com, phillip.lord@russet.org.uk To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 30 17:46:12 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 1rqbqO-0005S6-Ba for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Mar 2024 17:46:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqbqG-0004fn-E6; Sat, 30 Mar 2024 12:46:04 -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 1rqbqD-0004d4-8w for bug-gnu-emacs@gnu.org; Sat, 30 Mar 2024 12:46:02 -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 1rqbqD-00024c-0e for bug-gnu-emacs@gnu.org; Sat, 30 Mar 2024 12:46:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rqbqE-0001bQ-Jp for bug-gnu-emacs@gnu.org; Sat, 30 Mar 2024 12:46: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:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70077 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 70077-submit@debbugs.gnu.org id=B70077.17118171276074 (code B ref 70077); Sat, 30 Mar 2024 16:46:02 +0000 Original-Received: (at 70077) by debbugs.gnu.org; 30 Mar 2024 16:45:27 +0000 Original-Received: from localhost ([127.0.0.1]:46100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqbpe-0001Zu-Q1 for submit@debbugs.gnu.org; Sat, 30 Mar 2024 12:45:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqbpc-0001Z6-2I for 70077@debbugs.gnu.org; Sat, 30 Mar 2024 12:45:24 -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 1rqbpQ-0001e9-3C; Sat, 30 Mar 2024 12:45:13 -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=0v1qgFXfC5slJ+ceh6JS1olKcKXd56/fKB9Jj+ODPLw=; b=LXg5lAaLdlPI hbvghrpfoePnMTkoO9PDkcry9CAXQ5bJt63OFtkU1oMHCEh4Paz/N3gCdwyHeHJFrWx2MQrC9ctNK 71tnB2R0Y39X9va6mdE4yrdTbcw8VzjwdsuJnPIA2fZTKZiNdA7aWhb8vrtss+CMKTxL1681/CfYt L8gumBfzZcvpBvu/W7I8Q2SEPTrvn86X8eJsBHyFMghl2S+/GddfPzbs3DiPKMz/Srr6830cf0xVi xemacgUKNChxPymVsBLPLRU7tOt4A+BW19zr5b3X97aFBXmjMeLn7rggKIelijnwzTVLHAcr3tzcG q466FSQYxXjE0Yj1zhX3Ow==; In-Reply-To: (message from Stefan Monnier on Sat, 30 Mar 2024 10:58:40 -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:282385 Archived-At: > From: Stefan Monnier > Cc: 70077@debbugs.gnu.org, mail@nicolasgoaziou.fr, yantar92@posteo.net, > acm@muc.de, joaotavora@gmail.com, alan.zimm@gmail.com, > frederic.bour@lakaban.net, phillip.lord@russet.org.uk, > stephen_leake@stephe-leake.org, casouri@gmail.com, qhong@alum.mit.edu > Date: Sat, 30 Mar 2024 10:58:40 -0400 > > > Otherwise, the above looks like doing all the job in > > after-change-functions, and it is not clear to me how is that better, > > since if track-changes-fetch will fetch a series of changes, > > `track-changes-fetch` will call its function argument only once. > If several changes happened since last time, `track-changes.el` will > summarize them into a single (BEG END BEFORE). Then I don't think you will be able to guarantee that in all cases. You are basically trying to solve a problem that many packages which used the modification hooks tried to solve, but where they relied on some specifics of the problem they wanted to solve, you are trying to solve it in general, and I just don't believe it's possible (but will be happy to learn I'm mistaken).