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#65451: 30.0.50; `after-change-functions' are not triggered in the same order the changes are made Date: Fri, 25 Aug 2023 13:25:35 +0300 Message-ID: <83fs47o1uo.fsf@gnu.org> 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> <875y53ilve.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30254"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, 65451@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 25 12:26:54 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 1qZU1m-0007d8-FO for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Aug 2023 12:26:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZU1P-0001tt-Bw; Fri, 25 Aug 2023 06:26:31 -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 1qZU0u-0001lU-QK for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2023 06:26:03 -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 1qZU0r-0005Ne-VM for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2023 06:25:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qZU0w-0004Bj-2N for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2023 06:26: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: Fri, 25 Aug 2023 10:26: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.169295912216050 (code B ref 65451); Fri, 25 Aug 2023 10:26:01 +0000 Original-Received: (at 65451) by debbugs.gnu.org; 25 Aug 2023 10:25:22 +0000 Original-Received: from localhost ([127.0.0.1]:39341 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZU0H-0004An-Oi for submit@debbugs.gnu.org; Fri, 25 Aug 2023 06:25:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35446) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZU0F-000459-Bc for 65451@debbugs.gnu.org; Fri, 25 Aug 2023 06:25:19 -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 1qZU05-0005Fi-7K; Fri, 25 Aug 2023 06:25:09 -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=RpqC3RywY/8uKtB2Wl+L8GgDskSTahya774dQgDxfCM=; b=Ove3nYxfAHBd 4OiJtMSuF/hCSPj/FvMKqmpLFfyvAmmOGJ10X/dK7zZUJ6K0Fw6wYsdSzcqe+Ka/mbC0j4nP0Ku3f TeNp0T31dSWuEqB2nE7KMYyRYjpMY2uo3xLozP3ozyAADBfV56hRnhFGyJR4cCDDgNcS5Bm+ZCQo0 E5+QW3cuj/QyDkYfKEzr0gbTTiT0PA4r316+HhCQT1tWKPflchWOnl/tQFqYfn4A9Bcb1/Rivt1DS xobv+bMoP5PjHQJectbwEU4L52VpEIBYB5RY4RHxmM6vsaCVvaQPhD5pK7tont5w8D8ifSZpcvGup dn3xvm1+4JD6E/bmpiFuWg==; In-Reply-To: <875y53ilve.fsf@localhost> (message from Ihor Radchenko on Fri, 25 Aug 2023 08:09:41 +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:268421 Archived-At: > From: Ihor Radchenko > Cc: casouri@gmail.com, 65451@debbugs.gnu.org > Date: Fri, 25 Aug 2023 08:09:41 +0000 > > Eli Zaretskii writes: > > >> Elements of the list will be like > >> [:buffer-chars-modified-tick :region-beginning :region-end-before-edit :region-end-after-edit] > > > > If you really need buffer-chars-modified-tick, you will have to verify > > that it is updated before calling the function which updates the > > "transactions list". > > Do you mean that buffer-chars-modified-tick may not be yet updated at > the time treesit_record_change is called? Yes. You can audit the code and see it for yourself. > Then, treesit_record_change only uses byte positions. Will it be > possible to record buffer point positions, or may it be problematic? Sorry, I don't understand what you are saying here and how this is relevant to the issue at hand and to my comment in particular.