From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Renaming eglot -- or at least add an alias? Date: Sun, 9 Oct 2022 18:25:56 +0300 Message-ID: <26de3c24-2e33-5c83-16b6-689d7002204b@yandex.ru> References: <86wn9ji3ma.fsf@gmail.com> <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> <87c5875e-e448-cd0f-942e-a1c8e3d57d22@yandex.ru> <87a665ozqo.fsf@betli.tmit.bme.hu> <911444af-7fca-9560-0ded-894ca464780a@yandex.ru> <8735bxoy2o.fsf@betli.tmit.bme.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6522"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Cc: Eli Zaretskii , rms@gnu.org, emacs-devel@gnu.org To: Felician Nemeth Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Oct 09 17:27:30 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 1ohYDB-0001Uw-JK for ged-emacs-devel@m.gmane-mx.org; Sun, 09 Oct 2022 17:27:29 +0200 Original-Received: from localhost ([::1]:59858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ohYDA-0007UO-40 for ged-emacs-devel@m.gmane-mx.org; Sun, 09 Oct 2022 11:27:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohYCA-0006mg-0E for emacs-devel@gnu.org; Sun, 09 Oct 2022 11:26:26 -0400 Original-Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:43994) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ohYC7-0000u6-JM; Sun, 09 Oct 2022 11:26:25 -0400 Original-Received: by mail-wr1-x432.google.com with SMTP id n12so13725146wrp.10; Sun, 09 Oct 2022 08:25:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=+ThSwg7vFYD1RzAXRlim7w8S1Chnx6J50x6DSUufY04=; b=l5SphzzwCaIfR5gbnrhzlF8mND7PC44YFSzjtJSGCY6/h8a/Ltg/fTorm7eGBo2iKj fncqTZM0OA4/vrmKTXyXdctH+ZJXovO0Vpp54gghGvmyUXESJXDkvCIAhdT85Mdz5NVa vvkKS8u1/oV0Ef+/grbAE/FTQAROROcPFjliCXWB0ZIBz8eGUPSkBqB102o5YZR6E/K/ yreFoYsK8hicpWtVeOt8D9IEpduqlxyCQc6WewMpuifZ53MtcMZGXkuy7KD2uSUCkttT tOi7Eq2xDipZaDjf3sciKsEZJ7foCxd6N04bZymJn/Md+aq3vaOeApESjl00XNLq7hxI Ladg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+ThSwg7vFYD1RzAXRlim7w8S1Chnx6J50x6DSUufY04=; b=qWVorejP28b8mh25Q6gh4dMDbav9zmffwcNb850FlVDaY4Xeb6vvmfQMq1SXr8Wojd 2IeludcYxZ55QI6c3yweDL8BbLeKu18X0awOGVF2xctp6GFr1PjJeaLOUTyXx+xpLimv jl+G0PCbg/p8IS4aSx0BDu+j/dowOXefzPttgjcu3ZGvshwxBd5Z1+H32jW20MEBGzhH HkxaqmnqS+aSsBgUsB8V9xYu6SoHofHv8AWwMPaAzEfOrSJ9oJXTgNy8GX39xv+uR1e/ MP3OdOYI85/vMndvB8iu55MpmWjH9Sy+WTDd7ouHOqbYMgVSxTmEVPLsYEz+LWmQ48nU RrSQ== X-Gm-Message-State: ACrzQf2jM+iZs8lE0AP3eVKqSn6LBoT2FykaeIwjoabkxCOCib4ZjHp4 DYak1UTH8pr2nG8nIlPU/hs= X-Google-Smtp-Source: AMsMyM51BJem/+EzJ+S7OH0EcRtltP6NyM4X/UAJSnQGL2Atj3oT+A3Yg+OTFvH5kYhJJMmK3PYAbQ== X-Received: by 2002:a05:6000:1843:b0:22e:77b0:2e5 with SMTP id c3-20020a056000184300b0022e77b002e5mr8880441wri.215.1665329158144; Sun, 09 Oct 2022 08:25:58 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id n19-20020a05600c4f9300b003b4cba4ef71sm14242830wmq.41.2022.10.09.08.25.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 09 Oct 2022 08:25:57 -0700 (PDT) Content-Language: en-US In-Reply-To: <8735bxoy2o.fsf@betli.tmit.bme.hu> Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=raaahh@gmail.com; helo=mail-wr1-x432.google.com X-Spam_score_int: -53 X-Spam_score: -5.4 X-Spam_bar: ----- X-Spam_report: (-5.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-3.934, 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:297280 Archived-At: On 09.10.2022 17:45, Felician Nemeth wrote: >>>> LSP syntax highlighting is a new-ish thing, and apparently isn't >>>> supported by Eglot. >>> True, but there is a pending patch by Akib Azmain Turja that adds this >>> very feature to Eglot. Akib hopes to start the copyright process soon. >>> https://github.com/joaotavora/eglot/pull/839 >> Do you expect it to have advantages compared to using TreeSitter? > I'm not very familiar with TreeSitter, but I think TreeSitter would for > all practical cases provide a faster/simpler solution to font-locking. > > (TreeSitter uses an already defined grammar, whereas an LSP server could > potentially take into account dynamic information. I've reimplemented > the hangman game as an LSP server, and there the color of a word depends > on its location within the file. The color of the hanged man could also > depend on the number of remaining guesses.) That's my understanding of it as well. I suppose Eglot could provide some extra highlighting (e.g. for defined classes, or methods, at callsites), but to get that information, the language has to scan the full project first (or a significant part, at least). That would mean the fontification would need to be delayed significantly, or it would have the "blinking" effect we recently saw discussed (and complained about) with CC Mode.