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 15:49:45 +0300 Message-ID: <86v853dguu.fsf@gnu.org> References: <87sf082gku.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39139"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, 70077@debbugs.gnu.org, yantar92@gmail.com, qhong@alum.mit.edu, frederic.bour@lakaban.net, joaotavora@gmail.com, mail@nicolasgoaziou.fr, acm@muc.de, phillip.lord@russet.org.uk, stephen_leake@stephe-leake.org, alan.zimm@gmail.com, monnier@iro.umontreal.ca To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 30 13:51: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 1rqYAu-0009vF-St for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Mar 2024 13:51:09 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqYAn-0006gC-Ii; Sat, 30 Mar 2024 08:51: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 1rqYAm-0006g3-VC for bug-gnu-emacs@gnu.org; Sat, 30 Mar 2024 08:51: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 1rqYAm-00032G-KO for bug-gnu-emacs@gnu.org; Sat, 30 Mar 2024 08:51:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rqYAo-0006GY-G0 for bug-gnu-emacs@gnu.org; Sat, 30 Mar 2024 08:51: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 12:51: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.171180300723935 (code B ref 70077); Sat, 30 Mar 2024 12:51:02 +0000 Original-Received: (at 70077) by debbugs.gnu.org; 30 Mar 2024 12:50:07 +0000 Original-Received: from localhost ([127.0.0.1]:44167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqY9t-0006Dj-1j for submit@debbugs.gnu.org; Sat, 30 Mar 2024 08:50:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqY9q-0006Cr-KN for 70077@debbugs.gnu.org; Sat, 30 Mar 2024 08:50:04 -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 1rqY9e-0002Wk-Tk; Sat, 30 Mar 2024 08:49:50 -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=jRUo7066nSNub89wxZGo6KS6XwyIoZIZVE6u3xzTo+c=; b=cGRhskEQCLCz dM1YU5AatkwF5J/kAf9WjSVae9MN4D6NgyBihPi2vz4eetiLmwoaS1G/8EGXFYjUj8r9PTXoZZJST YHXhFGFXspSzAtROZR41oQQ5sE0n3TXJjozI7ye5IXgwTmk+Nh4AtPt4S/VXaLkx80NFJ9/OnCEiu wBfYMaJPWGGANds2xwSuPWpL6bsPdVYYpxYY3meoNHRaPhUg9GlPP5gCmKrBMBB+RWw09e0busBwK rxrJkR4EuI/ZlZ+Lg4CxS1pdlPkqhLZ2wcWAM8T7u9o88bo+3sIeNud5pmSKOyqkS3ViADJJypF64 FyC1VZrVsb25pkd947F2/w==; In-Reply-To: <87sf082gku.fsf@localhost> (message from Ihor Radchenko on Sat, 30 Mar 2024 09:51:13 +0000) 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:282356 Archived-At: > Cc: casouri@gmail.com, yantar92@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, > monnier@iro.umontreal.ca, phillip.lord@russet.org.uk > From: Ihor Radchenko > Date: Sat, 30 Mar 2024 09:51:13 +0000 > > Before we discuss the API, may you allow me to raise one critical > concern: bug#65451. > > If my reading of the patch is correct, your code is relying upon the > buffer changes arriving in the same order the changes are being made. > However, it is not always the case, as demonstrated in the linked bug > report. That bug report is about after-change-functions. Since Stefan didn't yet describe where will the changes be recorded, it doesn't necessarily follow that your worries are justified. They could be, of course, but we should decide that after we hear the details. In any case, who and where said the changes will be fetched by track-changes-fetch must be in the order they were made? why is the order at all significant?