From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Making `eglot-server-programs' a custom variable? Date: Thu, 10 Nov 2022 17:35:55 +0200 Message-ID: References: <86fservpri.fsf@gnu.org> <83v8nnqchr.fsf@gnu.org> <83sfiqrg5g.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20544"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Cc: arash@gnu.org, theophilusx@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii , =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 10 16:37: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 1ot9cK-00056a-9Q for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Nov 2022 16:37:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ot9bV-0003Q0-7R; Thu, 10 Nov 2022 10:36:33 -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 1ot9bT-0003Pi-Ln for emacs-devel@gnu.org; Thu, 10 Nov 2022 10:36:31 -0500 Original-Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ot9bR-00083m-Q8; Thu, 10 Nov 2022 10:36:31 -0500 Original-Received: by mail-wm1-x329.google.com with SMTP id a11-20020a05600c2d4b00b003cf6f5fd9f1so1401225wmg.2; Thu, 10 Nov 2022 07:36:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=jzdyZKCxprh0so4oFlDfE0Rmt9r7NQaj4Kpi6mJq2Ms=; b=PqGSQmhZCMpOxfUUu4nMGHx2Cp2IlFHfXbTBuXfeV/H840UtNIL0lSACj6hzTdzFsx r3FBnwcSoKCnXfEp909SqTqNuYdV7qLdjZubba3WXaBZxIxSQiAv/B2//y7U3rNDXc0B HTNF+MkUjfOBlYJR7Ybi/SYrqcQ71BjAaIf36suexysJZFqSlkt2A5QCd3ZxWDU/O3cq 2hBJP4tr9mX7k9A7SkzSCl99T1lRLaf38S+DTHbvDgLh3KsUGcpTlcu0+emq7KiKJ4xu K2eStublgqBmvSpQYFKnqRo9dSpl3m7JjYQ6rzrOakkiJuld3UxyJk0qo6SXKcVfurcz wRoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jzdyZKCxprh0so4oFlDfE0Rmt9r7NQaj4Kpi6mJq2Ms=; b=sCjlP/FRAw91Ck2fgLCdEd7VjST7i5XkzpJNLaeEMRgi1+fnrLo5CKTXWJ9lyA53uP 0oU/RYsMnCm8VGhL9TBc+upuBkp+8dXzAwjUcxGvw3dY8YvJHNyuYqrz70/g6JguWwGu OtHXUa7U2o9IK+QNeIr4Ov9HRqmroMQQC5cn7FZ5GVDxd2krwbALkIvV5+1Xlh8DAPFz amz3PwakjlHHwdSYQ77VpNTvoQhLF+cwPhle0kLzYLG36mV6lRiwHKvaj58zyuLb4ONo 7vsVaNpTOm79jX76K4/75d70wc7eWOitGzu1uzOIUc1GrLzMKHnywIcVAWFkOx34W5HT xVDA== X-Gm-Message-State: ANoB5pkvKJTqXnF2WuEuZ5pam69Y2FriCutTFPmnZfQMM83euNbvnxoa z/2j0AuW5ALVAqXlCZu73K5YTBIh0Lo= X-Google-Smtp-Source: AA0mqf6YDYxDLJOwxFOPUkUAqcKgDXuTlJ99rVXckVBkgmR0DpaP7mAjJWXHRNXHNRVyf+VD3GlRxw== X-Received: by 2002:a05:600c:3502:b0:3cf:b1c2:c9dd with SMTP id h2-20020a05600c350200b003cfb1c2c9ddmr12214776wmq.120.1668094560021; Thu, 10 Nov 2022 07:36:00 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id p7-20020a5d48c7000000b0022cce7689d3sm19286024wrs.36.2022.11.10.07.35.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Nov 2022 07:35:59 -0800 (PST) Content-Language: en-US In-Reply-To: <83sfiqrg5g.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=raaahh@gmail.com; helo=mail-wm1-x329.google.com X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:299494 Archived-At: On 10.11.2022 17:19, Eli Zaretskii wrote: >> 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. If you just have a command (to be used interactively, right?), it will only affect the value in the current session. defcustom provides a facility to persist the changes between sessions. I suppose we could have both a defcustom, and a command or two to modify the value.