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: Wed, 09 Nov 2022 23:07:30 +0100 Message-ID: <86r0yb234t.fsf@gnu.org> References: <86fservpri.fsf@gnu.org> <87cz9v97lo.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2856"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 Cc: emacs-devel , =?iso-8859-1?Q?Jo=E3o_T=E1vora?= To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 09 23:08:22 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 1ostF7-0000YT-4e for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Nov 2022 23:08:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ostEg-0001T3-QF; Wed, 09 Nov 2022 17:07:54 -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 1ostEe-0001Sg-K8 for emacs-devel@gnu.org; Wed, 09 Nov 2022 17:07:52 -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 1ostEe-0005Q6-8S; Wed, 09 Nov 2022 17:07:52 -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=ckTzkJGLJRdk1Sm6RXA6lVSffXJIsL+KENZOiU6buWU=; b=LbsCGnmeaFVAKFqzlQDv J6FCne7sRicPNGm4r1wiaMIPF/MDhWh+y2634Y27do9uZW+8FNe3zq9LXE63gh6HlV9TN9DRy00ff 2oK3jmSnQ57zVQQMPC86IW/b5IrHhkVYU4uPx6MF8SgwOg+V9Uea/SblIzZuWCYk6/eYOT+212Bb6 n3K9CWC1w3S08N3QNPZcpeKccpP+fcEXZtf+/bhv9tFHupJjBTdvXAtxhJzutEsMQklKLV8xGv3Ut tL6apQfGrGFEt0v5zIlKg4lo4evoyREInLLqFEjTspmXKza6tZjM/vXIJjlLXDMXYGTgijTrAMjl6 g9jFja9W8z3tjw==; 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 1ostEd-0005ny-Gw; Wed, 09 Nov 2022 17:07:51 -0500 In-Reply-To: <87cz9v97lo.fsf@posteo.net> (Philip Kaludercic's message of "Wed, 09 Nov 2022 20:49:07 +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:299442 Archived-At: Philip Kaludercic writes: > How would making `eglot-server-programs' help in that respect? If it's meant to be extended by users, then one could use the custom interface for it, not add-to-list then. > If the `defvar' were just to be replaced by a `defcustom', the result > would still just be a variable, that couldn't be `add-to-list'ed > before it is loaded. This will depend on the implementation. Say the current content of `eglot-server-programs' is in `eglot-server-programs-builtin' and `eglot-server-programs' is a custom variable, and you have a function like this in eglot.el: (defun eglot-server-programs () (append eglot-server-programs eglot-server-programs-builtin)) then a user can just setq the custom eglot-server-programs without being worry about the rest. Best, Arash