From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tim Cross Newsgroups: gmane.emacs.devel Subject: Re: Renaming eglot -- or at least add an alias? Date: Thu, 13 Oct 2022 11:17:59 +1100 Message-ID: <86mta0d0rz.fsf@gmail.com> References: <86tu4lsnqk.fsf@gmail.com> <8335c0p2fn.fsf@gnu.org> <83leproov6.fsf@gnu.org> <83fsfzonwn.fsf@gnu.org> <5a1e604c-4500-a476-da3d-259d9057a7f0@yandex.ru> <838rlromxu.fsf@gnu.org> <83h70dk3wf.fsf@gnu.org> <83fsfxk30x.fsf@gnu.org> <83r0zdd1cy.fsf@gnu.org> <83pmexcy1n.fsf@gnu.org> <86r0zdcrnj.fsf@gmail.com> <1B846141-FEFD-49E8-AA03-59D2B647F295@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14291"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.9.0; emacs 29.0.50 Cc: Eli Zaretskii , Richard Stallman , emacs-devel@gnu.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 13 02:30:46 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 1oim7a-0003UF-23 for ged-emacs-devel@m.gmane-mx.org; Thu, 13 Oct 2022 02:30:46 +0200 Original-Received: from localhost ([::1]:38622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oim7Y-0006hh-Je for ged-emacs-devel@m.gmane-mx.org; Wed, 12 Oct 2022 20:30:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38306) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oim67-0005xt-3d for emacs-devel@gnu.org; Wed, 12 Oct 2022 20:29:15 -0400 Original-Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]:33772) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oim65-0003lC-Dc; Wed, 12 Oct 2022 20:29:14 -0400 Original-Received: by mail-pg1-x52e.google.com with SMTP id f193so241519pgc.0; Wed, 12 Oct 2022 17:29:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:from:to:cc:subject:date :message-id:reply-to; bh=omVArDDVg0g8RZCePO8TgTZ4lsZ02SX4IJyIvJAuATI=; b=EkS2i2SPb3AQis20v+AZ8oLZCv9BtTOwrpRJbPgnYbvSryVBtMgkgi9wQGwH8nPX/Y RpLx6+yuDKvHWgrgWR14ptCrK+dGKkuAshkx7UH2Syvu2adEZaMCuAyTataGCa4wZ1yN +qZ1rxlkFxFY3kPkBTzIIe4Mvflsa8DgS/r3OZdTGYxPDlmw+hVPbCZWz0tYNs6qkCky hfh0t4mldzuZsZfIRX5CoHozU4gM1CQvnK0TaUdmFJFl/N2034MbonBoDffjeN/JwkhT npZogCafH7Tg0GZ+P+PihnLia762CvHawdvNcHYWYk1EAqEI+6Bh5RJSiYOfbs/sd5wK rjyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=omVArDDVg0g8RZCePO8TgTZ4lsZ02SX4IJyIvJAuATI=; b=08NLk13IZEeaZS12UlrPPqvwuWxoBnkqIX4KBLUr7kGNoXhGCY/ttxNwOGgA5e3Rd0 78/Ua/rl5ECMLxfxWgTaJEi4Ymclnh7hZhFCTFX/xnpqHJY+MIHD/kNnbTEcfvsetAqr s7y8bjoDljpYzs1lMaZKrSDeQFFigdp4jRJmHSBuSXrSeGfh6D9w+louzUucmJ0F3ssJ NNRkh8okYfj3+BazyfagWJaqEWWxsULhFsagbBmQZccej+LfY4LPVACTtIyC6ZAIjL1S PpRKCY/JtI/0OcLS8kDg8i92a/dV5RKo02fDWfqM7JLc7NbpdUN6movogJMEdJqwpZmg QB6g== X-Gm-Message-State: ACrzQf3BmV6oKYgLHpER4HVtVc96p2wtoIdqkZJZ2EAAJI5wMcxDNhIG d+tz6qIYdtJ+J5b70X1cd99igwlPgTs= X-Google-Smtp-Source: AMsMyM58r6eiZdHpLpV0jhKSegavQqobnmT4eTtAdlb7jSqptYRKUTngeDnPduNcLedNpw+LtulfWQ== X-Received: by 2002:a62:b501:0:b0:557:d887:20ee with SMTP id y1-20020a62b501000000b00557d88720eemr33180253pfe.8.1665620950239; Wed, 12 Oct 2022 17:29:10 -0700 (PDT) Original-Received: from dingbat (124-169-22-230.dyn.iinet.net.au. [124.169.22.230]) by smtp.gmail.com with ESMTPSA id j5-20020a170902c3c500b0017c3776634dsm11295862plj.32.2022.10.12.17.29.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Oct 2022 17:29:08 -0700 (PDT) In-reply-to: <1B846141-FEFD-49E8-AA03-59D2B647F295@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::52e; envelope-from=theophilusx@gmail.com; helo=mail-pg1-x52e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:297645 Archived-At: Yuan Fu writes: >>=20 >> This all seems to get very confusing/complicated quite fast. >>=20 >> In case it helps, as a user, for most of the languages I work in, here >> is what I would want (assuming eglot/tree-sitter support available for >> each language. >>=20 >> - Tree-sitter for font lock and indentation. I don't think eglot will be >> fast enough given json parsing and process comms etc. >>=20 >> - eglot for linting, xref, completion, doc lookup, code actions etc. >> Most of the time, I want this on a project rather than a file >> basis. Also, I want something which is consistent with co-workers who >> use other editors, but the same language server. >>=20 >> So for me, I want to be able to specify for xxx-mode, use tree-sitter >> for font locking and indentation and eglot for everything else. Being >> able to easily set that in myh init will be what I am looking for.=20 > > Thanks for you input. I don=E2=80=99t think eglot (and LSP the protocol) = handles font-lock and > indent, and tree-sitter doesn=E2=80=99t do the things you listed for eglo= t. So if you just enable > tree-sitter and eglot you should get what you want exactly. I don=E2=80= =99t know about eglot, but > we are working on the toggle for tree-sitter right now, you can see the o= ther thread I > started on this topic. > The LSP does handle providing indentation support (clojure-lsp has that) and I think code highlighting/font-locking is also being added. However, I agree with most who are concerned the overheads associated with LSP are potentially problematic, especially with large files. I find the file/project distinction useful when looking at tree-sitter and LSP (eglot). Tree-sitter seems extremely useful for providing parsed information on a single file while LSP seems useful when you need to look at things from a project perspective. Of course, the performance issue associated with LSP and parsing json also need to be considered in the context of the work (development and maintenance) required to implement a tree sitter parser for a specific language. The advantage of the LSP server is that it is able to provide data for many different editors and has the potential of being actively supported by the community supporting the language and not jsut the smaller community supporting an editor mode.