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: Making `eglot-server-programs' a custom variable? Date: Thu, 10 Nov 2022 20:34:49 +1100 Message-ID: <861qqbdtv2.fsf@gmail.com> References: <86fservpri.fsf@gnu.org> <831qqbtixr.fsf@gnu.org> <865yfndy14.fsf@gmail.com> <83o7tfrzcy.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="38209"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.9.1; 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:47:40 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 1ot49p-0009fR-PZ for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Nov 2022 10:47:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ot49P-0008RY-Tu; Thu, 10 Nov 2022 04:47:11 -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 1ot49K-0008RN-Cq for emacs-devel@gnu.org; Thu, 10 Nov 2022 04:47:06 -0500 Original-Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ot49I-0006R1-Gn; Thu, 10 Nov 2022 04:47:06 -0500 Original-Received: by mail-pl1-x62e.google.com with SMTP id io19so999485plb.8; Thu, 10 Nov 2022 01:47:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=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=/+lBgPtznXmSHZqgPhNPu4WJAa9oiz3niFePzEjcSgY=; b=GJ3ozIByZZFiYwfzrr88WRYSVqXdRylhXBCRw9HvKOkUsosexgQb+uBEZ2uGTEMs7q pul7Bo7meWsTxtd6TA1fqkoL7HOWHXT3UuY4XfvS9H7XPredeesDdGZYHa2rNzcdJgTt ElqE1GGAF4K3ZtJpSPL/3NhGvTsMLYtX8OsVvutBMZDRRdCgB7ZAHUEnn0/39vLvs0wk GJJLEbri5P8B3fS+sZ4Pvb2azRTFxduWDTwkJNoUL1AB2o72EMAqwZ9FFzepxvOXxIS6 YHUAxbk+jAAq/kjaqiANe2pg/5GoojIsUOrNWvljse1Hc6Y+PRxcVim2mOVhKzUBzOkL VebA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=/+lBgPtznXmSHZqgPhNPu4WJAa9oiz3niFePzEjcSgY=; b=fW0WOBhmI7EKYUzYINEockK4y3MwUyQDidGG7GU1cKVizxEdFW/wp4+R2V6/JrpsCS YjVAWS3lhjB+JGwtf7hXmDxS5HDxtry/AvlfeVsXGYv95IrudWY5fKlZxO6x3pK9dXXo 4sL6GQ2K0tF4KJn5kUTElWNjukt2E4xMV0byOjBm4OBaG25aUn3Q9InU54EbDewmXMmR lIl289nGsKbKoWoH2Xsfs7vj5uUF5IQQ2QY8UuINmrCw+jZWXW49kjSO3T2abYV4BZYT 1ZIZ0680fWBOtalPXEg+cqmpG7Yg3zeBcrik1tbhdzqxbtekxgQm6S4vydzkPqqyyxs1 sYBg== X-Gm-Message-State: ACrzQf2SJ6zQoA3sxHPndPC7exPyZjw8oX8gHzgUjvD4mcFxFeR33fTV Kfc2525fPQFoMJeFstcq9LxhLq0pJOI= X-Google-Smtp-Source: AMsMyM4VDcrfeBrV6/+MuP01oUFRs2/aD+yAMqNsadNFMrcqyEwSEGX5bpL5BJ4ffGdluTS87CVPsg== X-Received: by 2002:a17:902:7c12:b0:186:8111:ade2 with SMTP id x18-20020a1709027c1200b001868111ade2mr63940418pll.111.1668073621273; Thu, 10 Nov 2022 01:47:01 -0800 (PST) Original-Received: from dingbat (220-235-181-183.dyn.iinet.net.au. [220.235.181.183]) by smtp.gmail.com with ESMTPSA id j15-20020a63594f000000b00460ea630c1bsm8775792pgm.46.2022.11.10.01.46.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Nov 2022 01:47:00 -0800 (PST) In-reply-to: <83o7tfrzcy.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=theophilusx@gmail.com; helo=mail-pl1-x62e.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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:299472 Archived-At: Eli Zaretskii writes: >> From: Tim Cross >> Date: Thu, 10 Nov 2022 18:56:01 +1100 >> >> > Is the LSP server you needed to add still missing from the database >> > currently on master? If so, please suggest the addition(s). >> >> 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. >> There are multiple servers for many languages and individual >> preferences/requirements can differ. > > Yes, and the variable already supports that. > How? 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). . >> The first thing I had to do in order to use eglot was modify this >> variable to add my preferred Javascript server. > > Which one? Can it be added to the variable if it's still missing? I included it at the end of my post and you deleted it. You can certainly add it, but it will only take effect if it comes before the existing entry for javascript and of course, if you do that, it will be irritating for those who want the original value.