From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#70077: An easier way to track buffer changes Date: Mon, 01 Apr 2024 10:51:53 -0400 Message-ID: References: <86frw8ewk9.fsf@gnu.org> <86cyrcdy80.fsf@gnu.org> <877chh8fjk.fsf@localhost> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40591"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: casouri@gmail.com, 70077@debbugs.gnu.org, qhong@alum.mit.edu, frederic.bour@lakaban.net, joaotavora@gmail.com, mail@nicolasgoaziou.fr, acm@muc.de, Eli Zaretskii , stephen_leake@stephe-leake.org, alan.zimm@gmail.com, phillip.lord@russet.org.uk To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 01 16:53:29 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 1rrJ2P-000AJn-Mc for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Apr 2024 16:53:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rrJ1x-0001gz-7s; Mon, 01 Apr 2024 10:53: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 1rrJ1v-0001gl-Vc for bug-gnu-emacs@gnu.org; Mon, 01 Apr 2024 10:53: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 1rrJ1v-0004cD-NV for bug-gnu-emacs@gnu.org; Mon, 01 Apr 2024 10:52:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rrJ1y-0002uG-6Q for bug-gnu-emacs@gnu.org; Mon, 01 Apr 2024 10:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Apr 2024 14:53: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.171198313811116 (code B ref 70077); Mon, 01 Apr 2024 14:53:02 +0000 Original-Received: (at 70077) by debbugs.gnu.org; 1 Apr 2024 14:52:18 +0000 Original-Received: from localhost ([127.0.0.1]:51354 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrJ1C-0002tB-Su for submit@debbugs.gnu.org; Mon, 01 Apr 2024 10:52:18 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:42354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrJ16-0002sp-Gi for 70077@debbugs.gnu.org; Mon, 01 Apr 2024 10:52:13 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 70B3410004C; Mon, 1 Apr 2024 10:51:59 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1711983118; bh=pb+RkplP5OqfoZO2aH/H6M/03bzldwj9nKqyfdGAgM0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=bWRLq+Wauhhzj1ocpEOZ04pd0bfnynvRYQJf7KROmwqydenlfCipR1Nk4KLnj262Y PyYKGE7s35jc7lgbHbLccmfRQ29RZ6Lg3uxS81Iqx3OsRu7EFNkIDT7mL/Dng9yqMP dQ5z2yfETAndsRe1WbwQgVg/rqZ8l2FKxhjNixEdHi42G2lEVkTn7rikZHtzUyKcIn frruEDYSf9PN5f21x4qcwDHfj8ZmWGyxUUS25/lHpLZYkoee6MCAGUjc0J3ZO0N4tS tAyk2Ly+v1FBsfl8DzbyDSgRz6SduaFrbILIQ80czs2FxsjDpIcCThxIT0dUaa8NfF sRGB0caZFHhcQ== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 68D74100046; Mon, 1 Apr 2024 10:51:58 -0400 (EDT) Original-Received: from alfajor (unknown [45.72.201.215]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0781F1206CD; Mon, 1 Apr 2024 10:51:57 -0400 (EDT) In-Reply-To: <877chh8fjk.fsf@localhost> (Ihor Radchenko's message of "Mon, 01 Apr 2024 11:53:51 +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:282476 Archived-At: >> ... That's why `track-changes.el` bundles those into a single (BEG END >> BEFORE) change, which makes sure BEG/END are currently-valid buffer >> positions and thus easy to use. >> The previous buffer state is not directly available but can be >> easily reconstructed from (BEG END BEFORE). > > Do I understand correctly that such bundling may result in a situation > when BEFORE is very long? In particular, I am thinking of a situation > when there are changes near the beginning and the end of buffer in quick > succession. Yes! Stefan