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: Externalising 'eglot-server-programs' Date: Thu, 18 Jul 2024 08:04:38 +0300 Message-ID: <861q3rgujd.fsf@gnu.org> References: <87msmffyjz.fsf@posteo.net> 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="10621"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Philip Kaludercic , =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 18 07:05:23 2024 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 1sUJKV-0002R4-Pb for ged-emacs-devel@m.gmane-mx.org; Thu, 18 Jul 2024 07:05:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sUJJs-0007zA-Cl; Thu, 18 Jul 2024 01:04:44 -0400 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 1sUJJp-0007yt-Uq for emacs-devel@gnu.org; Thu, 18 Jul 2024 01:04:42 -0400 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 1sUJJo-0007n1-RE; Thu, 18 Jul 2024 01:04:40 -0400 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=JCVomzAOJiqWddKXwnlIX9glxdTo92UC/HDjq9VgO/c=; b=daik2V0JtPon4rmZw7SR FIWGq/CwvWFOmBxXDEGv2Dv3stmINQCQoDa4zMCmJhbkJWclQEQ+aX1SVl6gP3cmvD9wTU14p5aVo xcZ1lO6eQuMHHmu63xkxS5yvL5JR02pSXGaWmNsST1FNOPNHJ0Oc2ifgpIkaz/tlOv/k4RVKFCUhf iqwZQBK78SDQNrn7Xjp9cHmxPst9uIjb2z9ff+YZDzTeeyrXZeU++RhnQK0XE7oNbrt7MjjhQf7jP 5eTP1V4SiXnD8ehH5hxvrq8AMx68rO+Y+y0Gdvk469Jj75EjERrqyRdjtMFZEfkBvduASvXuYqMh1 mIySGwdff6nK1Q==; In-Reply-To: <87msmffyjz.fsf@posteo.net> (message from Philip Kaludercic on Wed, 17 Jul 2024 22:23:12 +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:321774 Archived-At: > From: Philip Kaludercic > Date: Wed, 17 Jul 2024 22:23:12 +0000 > > > I have been wondering why all the language servers are currently listed > in 'eglot-server-programs'? Isn't it usually the responsibility of a > major mode to integrate and configure generic functionality (Imenu, > CAPF, Xref, Outline, Font-Lock, ...) for a language? Would it be > imaginable to move towards the expectation that major modes and their > packages update 'eglot-server-programs', just like they update > 'auto-mode-alist'? We should keep in mind that Eglot is also available from ELPA, so it cannot necessarily rely on what major modes in core do, because 3rd-party major modes might not do that. Also, I don't see what possible harm could be caused by having all the known servers listed in that variable. Adding João to the discussion.