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: Sat, 12 Nov 2022 11:01:52 +0200 Message-ID: <83k040o8an.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14978"; 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 Sat Nov 12 10:02:43 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 1otmPS-0003ez-Az for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Nov 2022 10:02:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otmOk-0001MW-IH; Sat, 12 Nov 2022 04:01: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 1otmOb-0001M8-5c for emacs-devel@gnu.org; Sat, 12 Nov 2022 04:01:50 -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 1otmOa-0007MX-Mh; Sat, 12 Nov 2022 04:01:48 -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=wJf1ZLtZxBT948bFKoMgQnIXgBRcNXNiFntZNBRIOjQ=; b=NYcv2ktCDObr HOGNkzBirVmI8B6pNj+h8q/3KNhRK2KCc5GkW4dlOz8xptBcqq3khtG/1WuQPqbc9byhIPJP0jr2t ay2h+OeLefFuLFKApQyPLeaqOTLT/JxTQzFB3etW0qhAxZg7xUmM+LiNUApwNqrNTlAocBE/hsiGR CSal10i3euZehhYgyAni7L1Co/VSVu61OP9Nyh8PoikwNiScYkkC/lfRo+R1DW0W4ZvODxuNRzSD9 C50FlAOWtPIAqYHFPeVimkE7io75G4Kg9kKvbz7r7Ugz+U+o11u/RZ04XXBebu0kPxra2k45ccRVe ro1CmfxtT26ihga0699AVA==; 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 1otmOZ-0003C8-Dv; Sat, 12 Nov 2022 04:01:47 -0500 In-Reply-To: <87r0y8zhl9.fsf@posteo.net> (message from Philip Kaludercic on Sat, 12 Nov 2022 08:45:38 +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:299634 Archived-At: > From: Philip Kaludercic > Cc: jporterbugs@gmail.com, arash@gnu.org, emacs-devel@gnu.org, > joaotavora@gmail.com > Date: Sat, 12 Nov 2022 08:45:38 +0000 > > Eli Zaretskii writes: > > >> My issue here is that while you can modify the list, when saved you will > >> store the entire modified list, and no the modifications you made on the > >> base variable. > > > > The way to do this is to have a basic value as a defvar, and store the > > corrections to that in a defcustom. > > But in that case you need to load the library to get the default value, I don't see why. And even if it's so, why is it a problem to load the library? > in which case you might as well store the default value in the > defcustom. But you already explained why storing in a defcustom doesn't solve the problem? So why are you suggesting to do that anyway? > Also, I don't think this helps people who use the Customize > interface? Why doesn't it help?