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: Thu, 10 Nov 2022 18:10:49 +0000 Message-ID: <87k0427k9i.fsf@posteo.net> References: <86fservpri.fsf@gnu.org> <87cz9v97lo.fsf@posteo.net> <86r0yb234t.fsf@gnu.org> <87o7te7lc7.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="19219"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Arash Esbati , emacs-devel , =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 10 19:11:39 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 1otC1b-0004kk-6j for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Nov 2022 19:11:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otC0v-00031q-TX; Thu, 10 Nov 2022 13:10:58 -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 1otC0t-00031R-8k for emacs-devel@gnu.org; Thu, 10 Nov 2022 13:10:55 -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 1otC0q-0005GC-8E for emacs-devel@gnu.org; Thu, 10 Nov 2022 13:10:54 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 44F6824002A for ; Thu, 10 Nov 2022 19:10:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1668103850; bh=OCwh0to+7xW/TtIc9YcPuXS/dj102+f1Gq+8JG2VNt8=; h=From:To:Cc:Subject:Date:From; b=njKRovcks6F5X+udhXmNytjYE2CGa1jOHqz7ibUGg9SByeBkRWr2DV6YE7c12SHU6 HOEUGOch3yzNMv0rxY44zPBvw0GyeVe6QpSVc+yAmJHqqobNbk00TBjjsv8i+kDQ96 3RPXjDh9tJ/EOfi6W0C4icSWSbohSiGTIX845JqiO/85/LGwJI8V1OCfRnVG4I3PrI qzg25vY/5Oc7Uhqaj9lBVNdwnum4b8Yxvj50anRjSj00jYEQjCLdrm2vM6549opKAh dGye6L839dKl6UdUFT6yJuZEcky17dWMISYJc3Bi7vaY8WGJcF66auXiz7+o4pjKlL gv7StbZWREdbQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N7VJ91VdNz9rxF; Thu, 10 Nov 2022 19:10:49 +0100 (CET) In-Reply-To: (Stefan Monnier's message of "Thu, 10 Nov 2022 12:56:19 -0500") 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=unavailable 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:299508 Archived-At: Stefan Monnier writes: > Philip Kaludercic [2022-11-10 17:47:36] wrote: >> Honestly, I think that there should be a command like `add-to-option' >> that can handle these things automatically and defer loading if >> possible. > > Might be a good choice. We could even change `add-to-list` to do that. > > I suspect it would not be able to use `with-eval-after-load` because it > wouldn't know which file holds/defines that var. But we could make it > work for Custom vars, OTOH. I have the hunch that modifying `add-to-list' along these lines could break a lot of subtle programs, especially when they use `add-to-list' in place of `push'.