From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Reliable after-change-functions (via: Using incremental parsing in Emacs) Date: Mon, 30 Mar 2020 17:04:38 +0300 Message-ID: <835zem3pmy.fsf@gnu.org> References: <83o8sf3r7i.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="21483"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca, akrl@sdf.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 30 16:05:23 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jIv2X-0005Qo-Rz for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Mar 2020 16:05:21 +0200 Original-Received: from localhost ([::1]:50358 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIv2W-00024a-SG for ged-emacs-devel@m.gmane-mx.org; Mon, 30 Mar 2020 10:05:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52773) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIv1l-0001bH-AB for emacs-devel@gnu.org; Mon, 30 Mar 2020 10:04:38 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jIv1k-0001ZZ-SC; Mon, 30 Mar 2020 10:04:32 -0400 Original-Received: from [176.228.60.248] (port=3934 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jIv1h-00016P-DG; Mon, 30 Mar 2020 10:04:31 -0400 In-Reply-To: (message from Yuan Fu on Sun, 29 Mar 2020 15:29:41 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:246008 Archived-At: > From: Yuan Fu > Date: Sun, 29 Mar 2020 15:29:41 -0400 > Cc: Andrea Corallo , > Stefan Monnier , > emacs-devel@gnu.org > > A related question: is there a reliable way to be notified when buffer text changes? Because AFAICT both tree-sitter and LSP needs to know incremental changes. Why not simply pass to tree-sitter the chunk that jit-lock is about to fontify?