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: Wed, 16 Nov 2022 16:51:03 +0200 Message-ID: <83wn7veyw8.fsf@gnu.org> References: <86fservpri.fsf@gnu.org> <86r0yb234t.fsf@gnu.org> <87o7te7lc7.fsf@posteo.net> <83sfioob7s.fsf@gnu.org> <87wn80zjiw.fsf@posteo.net> <83leogo9yw.fsf@gnu.org> <87r0y8zhl9.fsf@posteo.net> <83k040o8an.fsf@gnu.org> <87mt8wzf20.fsf@posteo.net> <83edu8o5gw.fsf@gnu.org> <878rkgz3nj.fsf@posteo.net> <83r0y8meis.fsf@gnu.org> <87wn7zwvqk.fsf@posteo.net> <83a64vmk8l.fsf@gnu.org> <87k03zwcpm.fsf@posteo.net> <83wn7zl2pf.fsf@gnu.org> <87fsek6ra6.fsf@posteo.net> <831qq4hyo9.fsf@gnu.org> <87fsejnj6d.fsf@posteo.net> <83a64rggkd.fsf@gnu.org> <87zgcrm1ig.fsf@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20543"; 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 Wed Nov 16 15:51:51 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 1ovJlW-000555-K3 for ged-emacs-devel@m.gmane-mx.org; Wed, 16 Nov 2022 15:51:50 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovJkp-0005WU-UK; Wed, 16 Nov 2022 09:51:07 -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 1ovJko-0005WG-C5 for emacs-devel@gnu.org; Wed, 16 Nov 2022 09:51:06 -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 1ovJkm-0002EX-Ut; Wed, 16 Nov 2022 09:51:04 -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=lbgoC1yfHGyDw0EHTltc/VMX3R52Wf8aipt6rPS/9Uo=; b=d6yAtKb7Y23X HiQeyHWNCuE+odF7TPakWvpA1wWSIrt9fdG6d/0MZO83vHx4kBO2Q7pc3rG/dBQjdqUA7m7BOtzFw DoOwU59z5+XUzztXONKYjkpO6cctD9EvU2NeHHmHccjvPIlPFX5IeFHifF/3pW2RFpjJEc90aD7Ye FMEM/Hg/mlq4wFxOFiGnRy/RG6u8D7xzH/LCmmqeA0obM3O0XQgHhwal3S97G1fZQAuZHVrTx/4dT 6XKsebvDjmj6gwa6tgbMpFYnGiM5llOucOIomhmdLQawr9fs6xtlK9PjMV7y57mnrs0hllTs9kUFn /DTmAwVzaYKitiQe5MKNFA==; 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 1ovJkm-0004jK-Et; Wed, 16 Nov 2022 09:51:04 -0500 In-Reply-To: <87zgcrm1ig.fsf@posteo.net> (message from Philip Kaludercic on Wed, 16 Nov 2022 14:12:39 +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:299933 Archived-At: > From: Philip Kaludercic > Cc: jporterbugs@gmail.com, arash@gnu.org, emacs-devel@gnu.org, > joaotavora@gmail.com > Date: Wed, 16 Nov 2022 14:12:39 +0000 > > >> > . a multi-level list > >> > . elements that are alists > >> > . a "backquote construct" with evaluated parts in > >> > > >> > How much Lisp do we require a user to know? Imagine a user who just > >> > wants to add one more server, either for an existing mode or for a new > >> > mode not in the list. Do we really expect him or her to understand > >> > all that? > >> > >> For a simple modification, it appears that > >> > >> (add-to-list 'eglot-server-programs '(foo-mode "foo-lsp" "--stdio")) > >> > >> is enough. > > > > And we expect a random user to know this how? > > I believe it to be no more or less reasonable to know than how to > manipulate `auto-mode-alist', and that involves Elisp regular > expressions. I think this variable is way harder to grasp that auto-mode-alist. > > Probably. Which is why I think my original proposal, not to ask users > > to customize such variables directly, is much easier to implement. > > I don't think that either or differs too much in difficulty, this is > more a question of approach. I think adding infrastructure to Custom widgets is much harder than writing a :set function which adds an element to the likes of eglot-server-programs. But extensions of Custom in this direction will be most welcome, of course.