From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Renaming eglot -- or at least add an alias? Date: Mon, 03 Oct 2022 21:01:59 -0400 Message-ID: References: <83pmfdduix.fsf@gnu.org> <86wn9ji3ma.fsf@gmail.com> <86tu4lsnqk.fsf@gmail.com> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38226"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Tim Cross Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 04 03:04:35 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 1ofWMM-0009ju-8u for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Oct 2022 03:04:34 +0200 Original-Received: from localhost ([::1]:34460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofWML-0006Kp-3p for ged-emacs-devel@m.gmane-mx.org; Mon, 03 Oct 2022 21:04:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofWJs-0003Ve-2L for emacs-devel@gnu.org; Mon, 03 Oct 2022 21:02:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46894) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofWJr-0000T8-QO; Mon, 03 Oct 2022 21:01:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=7LFlKdCmxGmxZ/dqE/BlmN8CpyTItjSzUMQcJgICMLk=; b=akByzJMXb/hm 4/C7z9iAC5Okg++0AT5AL7KiJ8MfTdLoteJ/8x6CizJKznCqgwRg+MKMuKHq9ZpyP59GGslA8RLAN ge5hgMHr/Yss7CZDOs1o69tY/WW80cxk9C7Ak91otJBo6n7k+xbeX513u3t9goEKv/qxgFoqNNAEW twpXqct7ELDik817VgLZ5JMh/doxNvcyL8Pf+yFfXa82mH6Z6d/WPjEtVv8gisTLrpgg0vTJIFos0 HdTXmXOsnQWmF9evGt15WWhu1aYixRaLCSnHbBhoV9JA2md/EQNYONJwwqcNWy4xF3Vbygdm2rada H/6UQz0sUrwQKJlRKGeDow==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1ofWJr-0000MB-0h; Mon, 03 Oct 2022 21:01:59 -0400 In-Reply-To: <86tu4lsnqk.fsf@gmail.com> (message from Tim Cross on Mon, 03 Oct 2022 12:13:43 +1100) 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" Xref: news.gmane.io gmane.emacs.devel:296824 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > I am reputed to be good at that. nstead of telling me how hopeless it > > is, which won't convince me, how about telling me what Eglot does? > > Then we'll see if I come up with a more descriptive name. > > > No, I'm not the one pushing for the change. I am not "pushing for the change" regardless of all advantages and disadvantages. Rather, I am pushing to look for possible better names, and then make a decision based on what we will have found. Isn't that clearly the right thing to do? Won't you help us do it? If we find no better name than "Eglot", we will use that one. But we should make a real try to find one. It is your responsibility to > actually understand what eglot is if your going to argue the name needs > changing. That is a strange claim to make. I argued that the name Eglot has a specific disadvantage: that it doesn't mean anything to people like me who don't know what the package does. For that point, of all points, I don't have a "rasponsibility to understand what Eglot is." But I do need to understand roughly what Eglot does in order to look for possible better names. I thank Po Lu for posting that: It uses an external program speaking the language server protocol to provide completion-at-point and cross-referencing (think xref-find-references and xref-find-definitions.) This says that Eglot uses the language server for two very specific jobs. Does Eglot define its own commands to complete and/or find referencs, or does it hook into other commands which do those jobs so that they can make use of the language server data to do them? Then you posted about some other things it does: > - code snippets (I know what a "snippet" might be, but I have no idea what action this means.) > - code diagnostics and linting (Likewise, I don't quite understand this as an action.) > - enhanced documentation and feeds into eldoc > - provide code actions to fix diagnostic/linter errors or suggest code > refactoring > - hovering over symbols provides function signatures/documentation > - symbol renaming and other refactoring support This gives me the idea that Eglot causes various parts of Emacs to take advantage of parsing the file's language in order to do their jobs better. Is that basically right? Does Eglot aim to make use of parsing in all the Emacs features where it could be of use? If these two are correct, then I think I have an idea. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)