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.devel Subject: Re: Tree-sitter integration on feature/tree-sitter Date: Sun, 15 May 2022 22:26:55 +0300 Message-ID: <834k1qk35s.fsf@gnu.org> References: <87y1zabmbt.fsf@gmail.com> <5F186EBD-CD21-422B-8B4F-0D5424173334@gmail.com> <875ymdwf76.fsf@gmail.com> <011DA1A3-0FA8-4449-878A-FD6B336B0F1B@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23131"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, yoavm448@gmail.com, emacs-devel@gnu.org To: chad Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 15 21:27:50 2022 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 1nqJuA-0005w8-Kr for ged-emacs-devel@m.gmane-mx.org; Sun, 15 May 2022 21:27:50 +0200 Original-Received: from localhost ([::1]:38200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqJu9-0003wE-7V for ged-emacs-devel@m.gmane-mx.org; Sun, 15 May 2022 15:27:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqJtW-0003Gd-29 for emacs-devel@gnu.org; Sun, 15 May 2022 15:27:10 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53020) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqJtV-0002je-Ls; Sun, 15 May 2022 15:27: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=Ioh0NieSOKyi4+wGH/jzWMtNQjyqIqLbd46h0azvkRQ=; b=QnChAFfKXkM8 unS6mNEO+6LyGDphWmAzfAxje9fIrHU2tW2iHlh1NpLKZV/RK2h6Vte6UxAhwSJjV0cUIht/CAyD5 m1xFMce96uscYFLHxG4ZSKu30A/3NYxu6qt46iMjnGE0VCBurieRcE27vJDWLtw6eoM3xUzcHnsKu cyiAyGKP9sHRSHRDXEQHFEw9Bitr8uI7M9/5ewErnDFxQRm3kxLeVOrpg0lVat+vLiGSvLV5PMIZN dxVI1YAz8Cs331mNzzJ34VwfrzNBa1y7Qf+9myl2EFBG7iZDQ9ByMR4rrZNQy2ybFc1JAE872c81/ yT6x7jW86c7lNWxP7pR0YQ==; Original-Received: from [87.69.77.57] (port=2833 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 1nqJtV-0004lA-31; Sun, 15 May 2022 15:27:09 -0400 In-Reply-To: (message from chad on Sun, 15 May 2022 15:20:18 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:289797 Archived-At: > From: chad > Date: Sun, 15 May 2022 15:20:18 -0400 > Cc: Yoav Marco , > EMACS development team > > While it's true that Emacs doesn't fontify whole buffers under the current scheme, based on what I've read > of tree-sitter (caveat: a fairly long while back), I think it might be reasonable to move to a > whole-buffer-and-repair strategy for emacs+treesit, and that might provide some nice simplification along the > way. AFAIU, according to benchmarks shown in this thread, this strategy will lead to several seconds of delay in response, at least for the initial display. I think this is too much; we should try getting rid of such long delays.