From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.devel Subject: Re: Making `eglot-server-programs' a custom variable? Date: Thu, 10 Nov 2022 10:18:43 +0100 Message-ID: <86edubdv64.fsf@gnu.org> References: <86fservpri.fsf@gnu.org> <831qqbtixr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23157"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 10 10:20:43 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 1ot3jm-0005pE-60 for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Nov 2022 10:20:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ot3ix-0008IO-4V; Thu, 10 Nov 2022 04:19:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ot3ia-0008Fl-Po for emacs-devel@gnu.org; Thu, 10 Nov 2022 04:19:29 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ot3ia-0001Tg-Hq for emacs-devel@gnu.org; Thu, 10 Nov 2022 04:19:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=1/FRGAnQSWCZoXhOQufJaeT2WtH1BTgPm/0RmJRfXRo=; b=I+AvAUYuZX5ifKbXtmU+ pxJdRFx5FjX+cccPy6SjWr5Gsuw3RPVCe01v0dtX81b/hi+nhbBRyNpGwv38dGR3tooRi1t09gZAm gRzj0+IHfDgYCOyI40448EcV5hbmZlMji8CXSkZk5xWLmGTXMlSIQLzHkNQoy6sRP9LRUI4btbMVL kRzF/CWdoMciwiL929VCGTFf4D9BEUmcrBz8mHb8uuTogjotrgnQpBu9jULi9iwUwaWjh0M97HztU Pp4nXc+WAdZy5/j3Bvdy1aWkoe497Vc4vUdgVzOmfLrSLTj0CAT62xznZ61BTH/+w6PRpAkzwV00V 9nG4HWBjAgG64A==; Original-Received: from p5b326552.dip0.t-ipconnect.de ([91.50.101.82] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ot3iO-0005VG-1F; Thu, 10 Nov 2022 04:19:26 -0500 In-Reply-To: <831qqbtixr.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 10 Nov 2022 08:36:16 +0200") 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:299469 Archived-At: Eli Zaretskii writes: > The intent is for this variable to include enough servers to make it > unnecessary to add to the list. Ok, that's a different story. Would it then make sense to add a comment to the manual about each server and if they work on the platforms Emacs runs? Currently, "digestif" doesn't run on Windows, "texlab" (see below) does. I know, this is work and possibly out of Eglot's scope, but it could give users some direction. > Is the LSP server you needed to add still missing from the database > currently on master? If so, please suggest the addition(s). The addition would look like this: --8<---------------cut here---------------start------------->8--- diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 2eaa396386..f69d392b46 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -217,7 +217,7 @@ eglot-server-programs (scala-mode . ("metals-emacs")) (racket-mode . ("racket" "-l" "racket-langserver")) ((tex-mode context-mode texinfo-mode bibtex-mode) - . ("digestif")) + . ,(eglot-alternatives '("digestif" "texlab"))) (erlang-mode . ("erlang_ls" "--transport" "stdio")) (yaml-mode . ("yaml-language-server" "--stdio")) (nix-mode . ,(eglot-alternatives '("nil" "rnix-lsp"))) --8<---------------cut here---------------end--------------->8--- Best, Arash