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#59693: 29.0.50; treesitter in base buffer doesn't respond to modifications in indirect buffer correctly Date: Wed, 30 Nov 2022 16:05:50 +0200 Message-ID: <8335a0lept.fsf@gnu.org> References: <87r0xlbjg6.fsf@miha-pc> <5F7AE71F-0327-409E-BCE9-310E1980C17A@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23237"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59693@debbugs.gnu.org, miha@kamnitnik.top To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 30 15:08:14 2022 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 1p0Nl0-0005my-67 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Nov 2022 15:08:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0Nk3-0002hX-Hu; Wed, 30 Nov 2022 09:07:15 -0500 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 1p0Njt-0002gH-CX for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 09:07:14 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p0Njs-0006Vb-2L for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 09:07:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p0Njr-0005ci-T7 for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 09:07:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Nov 2022 14:07:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59693 X-GNU-PR-Package: emacs Original-Received: via spool by 59693-submit@debbugs.gnu.org id=B59693.166981718821562 (code B ref 59693); Wed, 30 Nov 2022 14:07:03 +0000 Original-Received: (at 59693) by debbugs.gnu.org; 30 Nov 2022 14:06:28 +0000 Original-Received: from localhost ([127.0.0.1]:32992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0NjH-0005bi-Pm for submit@debbugs.gnu.org; Wed, 30 Nov 2022 09:06:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0NjG-0005bc-VN for 59693@debbugs.gnu.org; Wed, 30 Nov 2022 09:06:27 -0500 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 1p0NjA-0006ML-Aw; Wed, 30 Nov 2022 09:06:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=od9SLiTsmbF/WV5xwaLm9uVOJcWWbi0xGnGHGSWAXqM=; b=WQmRGZQbqj4njKn7ynzZ 3/Yq17MJHqxxWgykOVxdBkPsXGMCEB5vrIq0GkFwjQ/duqo9PN6fwdgGQjX+ggCkweGgef1GFGAaO fSA/RX6ROaNCYDrGRz6abLOi7Qc0NzDmkvycGwdvwIgDAUF7GhUKzsZBS6V0LnC3tcUJDfEZxAP6q r+gKbcYwuTH5vW9CaaRrwSxeTM4dDvxouDWmf2xgJPhRZt1gagFLtEZaef1MB523LGlsMRfkflRPo ERHlRzIlWOe3zpSs7wlvFHMzaTwgtA8j/CK7WFxAx2eN+YOeHLS3r0A3bBPulYq/NUP3vKJ6GggV+ Q89C8sfJgjQiTQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0Nj9-0000FK-G8; Wed, 30 Nov 2022 09:06:19 -0500 In-Reply-To: <5F7AE71F-0327-409E-BCE9-310E1980C17A@gmail.com> (message from Yuan Fu on Wed, 30 Nov 2022 02:17:14 -0800) 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:249502 Archived-At: > Cc: 59693@debbugs.gnu.org > From: Yuan Fu > Date: Wed, 30 Nov 2022 02:17:14 -0800 > > Thanks! I forgot about indirect buffers... We’ll need to make sure to > use the parsers in the original buffer when user edits the indirect > buffer, or something like that. I need to look into how does indirect > buffer works. In the insdel.c hooks where you record changes to buffer text, you should see if the buffer has a base_buffer, and if so, update any parsers of the base buffer as well.