From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Re: cc-mode fontification feels random Date: Fri, 4 Jun 2021 09:43:26 -0700 Message-ID: <15be7dd8-e901-e317-5111-e1a34f6f0416@gmail.com> References: <831r9iw473.fsf@gnu.org> <87h7ieyma7.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26000"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Daniel Colascione , ubolonton@gmail.com To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 04 19:32:20 2021 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 1lpDgC-0006gV-AO for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Jun 2021 19:32:20 +0200 Original-Received: from localhost ([::1]:58618 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpDgB-00017v-C5 for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Jun 2021 13:32:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39438) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpCv0-00051G-0I for emacs-devel@gnu.org; Fri, 04 Jun 2021 12:43:34 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:51414) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpCuy-0006p3-KD for emacs-devel@gnu.org; Fri, 04 Jun 2021 12:43:33 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lpCuw-0004UZ-7y for emacs-devel@gnu.org; Fri, 04 Jun 2021 18:43:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ In-Reply-To: <87h7ieyma7.fsf@gmail.com> Content-Language: en-US Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:270392 Archived-At: On 6/4/2021 3:08 AM, João Távora wrote: > - However, LSP support for fontification seems like it's potentially > _less_ efficient than integrating something like tree-sitter as a C > module in Emacs. That's because the contents of the buffer and > fontification results are continually transmitted back and forth via > pipes and JSON format. I imagine these potential performance issues would also be exacerbated by editing over TRAMP. Currently, the latest development builds of Eglot work nicely with TRAMP files, but having to send fontification results back to the local Emacs instance could be a problem over slow connections. Having something built into Emacs (as much as possible) would also have the benefit of allowing users to read a properly-fontified source file even for languages they haven't installed tools for. For example, I might want to read a C# source file occasionally, despite not having a C# compiler/LSP server. - Jim