[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cc-mode fontification feels random

From: Jim Porter
Subject: Re: cc-mode fontification feels random
Date: Fri, 4 Jun 2021 09:43:26 -0700

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]