From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: Re: Making `eglot-server-programs' a custom variable? Date: Sun, 13 Nov 2022 07:11:33 +0000 Message-ID: <87k03zwcpm.fsf@posteo.net> 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> <83a64vmk8l.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="35128"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jporterbugs@gmail.com, arash@gnu.org, emacs-devel@gnu.org, joaotavora@gmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 13 08:11:53 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 1ou79l-0008xP-Cc for ged-emacs-devel@m.gmane-mx.org; Sun, 13 Nov 2022 08:11:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ou79W-0000Mo-Mc; Sun, 13 Nov 2022 02:11:38 -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 1ou79U-0000MQ-JR for emacs-devel@gnu.org; Sun, 13 Nov 2022 02:11:36 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ou79T-000193-3a for emacs-devel@gnu.org; Sun, 13 Nov 2022 02:11:36 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id CB0C9240028 for ; Sun, 13 Nov 2022 08:11:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1668323493; bh=b1VFt2HihYPZmmDMFa3MsTWkGGZJ2gTPlXDxUoHdl6g=; h=From:To:Cc:Subject:Date:From; b=i47iu29HAXS2lqpThWI9Vchupp9mgBQa1/tGQgsqyij/P588qUi9pgQw3JT1v0pB6 M7WHF6q9mQF1S9SrWKwZiciXf0E9dEe0s5zd3nv4YSdYg+0FqUxXu+dxxk5GUBaQ64 yNx/1f6zbjXRyizwiMshwBEtY9UHqrSJPQp7mSHk1X5Vd5a3VMJblzCUeXQRe8FiD6 BRqDEFDZpKETX1gozSRy3lO3jQ+BvlMbO0Hk1fUlmgS+QPxGunFhxeLlc8MiY2sRfo +O2/ceeKbU0mLIb0LAQBk3uFDw8PZ7Y7VERqskj3FK5GkbPpSaD9eSoFQ8zRIiJnHz ZY9hWnjLFWQ0Q== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N93X52096z9rxM; Sun, 13 Nov 2022 08:11:33 +0100 (CET) In-Reply-To: <83a64vmk8l.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 13 Nov 2022 08:39:06 +0200") Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de 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, 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:299708 Archived-At: Eli Zaretskii writes: >> 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? Err, the question doesn't make sense in retrospect, I should have removed it before sending out my message. >> > 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? That all user options containing lists can be modified, without each user option containing lists explicitly accommodating the fact using some other variable.