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: Sun, 13 Nov 2022 08:39:06 +0200 Message-ID: <83a64vmk8l.fsf@gnu.org> References: <86fservpri.fsf@gnu.org> <87cz9v97lo.fsf@posteo.net> <86r0yb234t.fsf@gnu.org> <87o7te7lc7.fsf@posteo.net> <83sfioob7s.fsf@gnu.org> <87wn80zjiw.fsf@posteo.net> <83leogo9yw.fsf@gnu.org> <87r0y8zhl9.fsf@posteo.net> <83k040o8an.fsf@gnu.org> <87mt8wzf20.fsf@posteo.net> <83edu8o5gw.fsf@gnu.org> <878rkgz3nj.fsf@posteo.net> <83r0y8meis.fsf@gnu.org> <87wn7zwvqk.fsf@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13102"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jporterbugs@gmail.com, arash@gnu.org, emacs-devel@gnu.org, joaotavora@gmail.com To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 13 07:39:49 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 1ou6ei-0003Db-Mp for ged-emacs-devel@m.gmane-mx.org; Sun, 13 Nov 2022 07:39:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ou6dy-0006we-0Y; Sun, 13 Nov 2022 01:39:02 -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 1ou6dv-0006wV-JN for emacs-devel@gnu.org; Sun, 13 Nov 2022 01:38:59 -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 1ou6dv-0003P1-AK; Sun, 13 Nov 2022 01:38:59 -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=+nMRVVfKmvfS+SC6wkRI0fJcKQgn2MSkzxl2JB+yWR8=; b=C9BiAPWp7c28 typMiQYulEBpiaolwSv+aiJYDLi8vy3L6waAO4ZcNR33Up4HuCg7pu7g9NN802bYaYCiOOnjJb8Pb MM2I4NEeVGs8i30Fmm9jVJW/QH69Kcptua0pIk+LuT6EdJ6fpsORCoX4nt/IW6yg/e1i8RNBu2VC/ /3sUlrTgxLeWK/JGH7KTn+6pjhXvTA+0A3mYzIES0+bjy239maeoKeZGsAZ2SYDWcofNdpFlQ+lJz FrwjI99EpS53ANZf+HWoUIDqnbS0xAoKRP9K9ViDB/e2Nv1h53Jz5NVZlnHLtmYpuBcmKx0MwAHE2 Djowom1ShAizP7vCyZhb+A==; 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 1ou6du-0008Gs-M8; Sun, 13 Nov 2022 01:38:58 -0500 In-Reply-To: <87wn7zwvqk.fsf@posteo.net> (message from Philip Kaludercic on Sun, 13 Nov 2022 00:20:35 +0000) 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:299701 Archived-At: > From: Philip Kaludercic > Cc: jporterbugs@gmail.com, arash@gnu.org, emacs-devel@gnu.org, > joaotavora@gmail.com > Date: Sun, 13 Nov 2022 00:20:35 +0000 > > > Under my proposal, the variable eglot-server-programs remains a > > defvar, and contains the baseline list of the servers. To customize > > the list, users change the value of a separate user option, say, > > eglot-user-server-programs. This user option's value is nil by > > default, and it allows users to specify both additions of servers to > > the baseline value of eglot-server-programs and removal of servers > > from that value. > > How would this look like? I don't understand what you are asking here. How what will look like? > > The :set function of eglot-user-server-programs then > > takes care of doing whatever is needed to make sure that the value of > > eglot-server-programs is modified according to > > eglot-user-server-programs's value when Eglot is started. > > This I understand, but I don't see how this is preferable to a general > solution that doesn't require explicit support for any user option. What is the general solution you have in mind? And what problems does that general solution solve?