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 17:19:23 +0200 Message-ID: <83sfiqrg5g.fsf@gnu.org> References: <86fservpri.fsf@gnu.org> <83v8nnqchr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8779"; mail-complaints-to="usenet@ciao.gmane.io" Cc: arash@gnu.org, theophilusx@gmail.com, emacs-devel@gnu.org To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 10 16:20:28 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 1ot9Lu-00021D-Qw for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Nov 2022 16:20:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ot9L6-0005fE-02; Thu, 10 Nov 2022 10:19:36 -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 1ot9L4-0005ex-3n for emacs-devel@gnu.org; Thu, 10 Nov 2022 10:19:34 -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 1ot9Ku-0003ic-Fv; Thu, 10 Nov 2022 10:19:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=cvu96CxKlqdbSc4xTwyyBKMUEqHZhIJfRXY204D7R+s=; b=HLrfD2OIG9be2RL24hHS ejtDVhNNIgbZDrlMsxq936SJ0q7T8x2DZsSP81okkhDFR20rN/b9s2x4Q5fadGhNm21drKD47B0Yj CZS/5rjQLRswh/lLU6oUr18G4I5RAhJu7yjsLgHArZ0f3KxleOlT2DnNs4d8ZmSYSNlRxkQT28e6t Tmsa2cVS/I3n5Va7b5J5SZBTs97xXCpEngsM0xNKgWowLKctYv/woWs5nON/QWh8yLJTOhEphGAeQ VY0Oh7EMZHbkUtAoTkvQaLFz+r6pq4+pgy/GH6ja5zlIjdzXv5QM5XjmEQO40JSk8uNf3Z/UhbRyw 5QFCA8oHj7lIKw==; 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 1ot9Kt-0005DI-2O; Thu, 10 Nov 2022 10:19:23 -0500 In-Reply-To: (message from =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= on Thu, 10 Nov 2022 12:07:30 +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:299491 Archived-At: > From: João Távora > Date: Thu, 10 Nov 2022 12:07:30 +0000 > Cc: arash@gnu.org, theophilusx@gmail.com, emacs-devel@gnu.org > > > That said, I have no objection to converting eglot-server-programs into > > a defcustom, if someone will commit to translating and maintaining all > > the complex combination of options into "widget" form. I don't have the > > time or inclination for this task, but maybe someone has. > > It is not a good idea to have a defcustom whose value should be such a > complex data structure. > > I agree, but a command is a not a solution IMO: this belongs in the > user's configuration file. ??? The user init file can call the command, cannot it? And adding a command is not a replacement for having a variable: people who know enough Lisp can do what they want with the variable. The command is proposed as a replacement for a defcustom, because interactively customizing such a complex variable with a very long value is problematic at best. > A good docstring (can it be improved?) containing good descriptions > and some ready-made recipes is the current and best approach to these > things. Sorry, but I disagree. No doc string can reasonably teach users advanced Lisp. That's a non-starter.