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: Thu, 10 Nov 2022 20:31:06 +0200 Message-ID: <835yfmr79x.fsf@gnu.org> References: <86fservpri.fsf@gnu.org> <83v8nnqchr.fsf@gnu.org> <83sfiqrg5g.fsf@gnu.org> <83mt8yrbxs.fsf@gnu.org> <6a4d4605-88dd-0950-e2a1-e4597bc979f7@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8041"; mail-complaints-to="usenet@ciao.gmane.io" Cc: joaotavora@gmail.com, arash@gnu.org, theophilusx@gmail.com, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 10 19:31:26 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 1otCKj-0001uz-1R for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Nov 2022 19:31:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otCKW-0004HS-19; Thu, 10 Nov 2022 13:31:13 -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 1otCKU-0004HI-Vf for emacs-devel@gnu.org; Thu, 10 Nov 2022 13:31:11 -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 1otCKU-0002AK-Lg; Thu, 10 Nov 2022 13:31:10 -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=qI/DGNiH1g+nCSfEBku6lNSxFmgU38j3A9xxDliWXgk=; b=PTkwKwng09lQ b+HsZS9JxH1i9ROvZTIG6RiFoM9Aq6X6YmrfHkQOUZ+LcxcYVLJffgvduUTGbFTGXVbCgRDd+W2ht w/TtvhzBQSz7mbxqeQXT+Tz0rKn1PFLFgTXhseRbN9DGMVTM+XscF53enzQBUU6u7rX/c4xfQ1Vru MZstteujJJKFKALJSY/AopHn+6Z0AjoXh/D6bX1iJJc0T9eLq0u1OAf1x6dbzzbsEqgIy6RRrY0Ly eq8vSxBo5wjnTvQzcnxgnmT8UZWgIiQ/lbrCeOBlUkAdyC1MMrKHXqP2Qzl5woPIcFEG2nhNSCOj9 tEZK0PQEApsfSy4DesGg9g==; 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 1otCKQ-0000UV-1q; Thu, 10 Nov 2022 13:31:08 -0500 In-Reply-To: <6a4d4605-88dd-0950-e2a1-e4597bc979f7@yandex.ru> (message from Dmitry Gutov on Thu, 10 Nov 2022 20:22:00 +0200) 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:299517 Archived-At: > Date: Thu, 10 Nov 2022 20:22:00 +0200 > Cc: joaotavora@gmail.com, arash@gnu.org, theophilusx@gmail.com, > emacs-devel@gnu.org > From: Dmitry Gutov > > On 10.11.2022 18:50, Eli Zaretskii wrote: > >> Date: Thu, 10 Nov 2022 17:35:55 +0200 > >> Cc:arash@gnu.org,theophilusx@gmail.com,emacs-devel@gnu.org > >> From: Dmitry Gutov > >> > >> If you just have a command (to be used interactively, right?), it will > >> only affect the value in the current session. > > The command could do whatever we want it to do, including writing to > > the user's init file, if the user wants that. And if the command is > > invoked from the init file, it will affect the current session, in > > every session. > > The user can normally choose where the customizations are stored (inside > the init file, or in some file alongside it). When they use defcustoms? only globally, for all the defcustoms, not individually for each defcustom. > If you're suggesting the proposed command reimplements that logic (and > honors the value of custom-file? ignores it?), that seems like a poor > choice in my POV. There's no need to reimplement anything, because we can use the same APIs that Custom uses. For example Options->Save options from the menu bar already does that.