From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Making `eglot-server-programs' a custom variable? Date: Thu, 10 Nov 2022 13:16:19 +0200 Message-ID: <83y1sjqcu4.fsf@gnu.org> References: <86fservpri.fsf@gnu.org> <831qqbtixr.fsf@gnu.org> <865yfndy14.fsf@gmail.com> <83o7tfrzcy.fsf@gnu.org> <861qqbdtv2.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10322"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Tim Cross Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 10 12:16:38 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 1ot5Xy-0002Ub-BK for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Nov 2022 12:16:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ot5Xf-0008Bh-UO; Thu, 10 Nov 2022 06:16:19 -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 1ot5Xf-0008BZ-2P for emacs-devel@gnu.org; Thu, 10 Nov 2022 06:16:19 -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 1ot5Xe-00020u-Kf; Thu, 10 Nov 2022 06:16:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ZqYauSG+b04QEBUnvisytu5NfPB63nczV9JEm/qrswY=; b=gQsZ67Z7cZRj 4aDa6tJ17XI1W9p9pdbjBQimO3kHFZIbsFImN+5BPNiFof2uibjEgVLRqF8/Jz8xZRUDFphmGIDB6 O2QUL0jJF51ups7/3yZ5GQOPl0oPuKSsI149IP1qj5Yww4reWtTWDNTeuWncNeZe11rD5df+NQDIZ NYNshoY0zVBZsSrmaTv2K2gT5xbuQUn8AYe8CA57bCmMejwt5qGb2Pa1jGnwlVpwytVJ41V57xQHb 4QPaZpDRoj2+3Nel1fPGRI5EVVGV67iLKXgv+5Y68ws9pWcVh6NaIlhIdJ/JEdtjOXU+jwq7c0Rud IZL+tOYxaFMr3zZ1Fs5paw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ot5Xe-0002vq-3u; Thu, 10 Nov 2022 06:16:18 -0500 In-Reply-To: <861qqbdtv2.fsf@gmail.com> (message from Tim Cross on Thu, 10 Nov 2022 20:34:49 +1100) 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:299477 Archived-At: > From: Tim Cross > Cc: emacs-devel@gnu.org > Date: Thu, 10 Nov 2022 20:34:49 +1100 > > >> I'm not sure that intent will hold. It has the underlying assumption > >> there is a definitive language server for each language. > > > > No, it doesn't. Please see the current value of the variable and its > > documentation in the manual. > > I guess you will have to explain as I've looked at the documentation > again and still don't see how you can have two different language > servers for the same language. While you can have multiple entries for > the same language modes, only the first one in the list take effect. That's not my understanding. > >> There are multiple servers for many languages and individual > >> preferences/requirements can differ. > > > > Yes, and the variable already supports that. > > > > How? Via eglot-alternatives. There are entries in the value which already use that. And the change you suggested used that as well. So I wonder what kind of misunderstanding are we having here. > Please show as it isn't clear to me from the documentation and > there isn't a single entry which shows support for multiple language > servers for the same language (where only one is active at a time of course). . You mean, there's a difference between several servers for the same mode and several servers for the same language? What is the difference? Or is that also part of the misunderstanding?