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: Renaming eglot -- or at least add an alias? Date: Tue, 04 Oct 2022 10:06:18 +0300 Message-ID: <83ill0vzit.fsf@gnu.org> References: <83pmfdduix.fsf@gnu.org> <86wn9ji3ma.fsf@gmail.com> <86tu4lsnqk.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21529"; mail-complaints-to="usenet@ciao.gmane.io" Cc: theophilusx@gmail.com, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 04 09:14:03 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 1ofc7v-0005Ry-3x for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Oct 2022 09:14:03 +0200 Original-Received: from localhost ([::1]:56296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofc7t-000390-Pn for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Oct 2022 03:14:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofc0W-00083c-D7 for emacs-devel@gnu.org; Tue, 04 Oct 2022 03:06:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47906) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofc0W-0000Xz-4K; Tue, 04 Oct 2022 03:06:24 -0400 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=/5tJBL27Z3X+vjBIfyZRa+O54C9qbvokKp2K0S16I5o=; b=OL++Azma99Y4 671KFkp9dDUWXHhSOcP87K+gWODTT9+VgGTX2q3RVmvSBWkVQ9v8Vv/aFeLdfx7TkPgrykxfnhgQL Ie3Gwwk0x8JR4Zbi0A3CMg3K5FDLL9jHfNjVGEMc8uhUAwi8M0RXftBo2k9O1wWX5VR+Wd+cTFQJY Vh00qTyVoTu0W7EY+wWQP2PHSnxmQwO63ludsoOn1tRIWj/l9pQJeqk9ZNSzsK4OrRjKRktnr+8eK iybtKLiMYMK+Hh+iwGExWn6/jV0ShmUuaErmVgYbgNXc981tT9KsydriawmWMlyDwJ+vBW/hYtVlf Uxc6JbDZelE4JFgYfvSkbQ==; Original-Received: from [87.69.77.57] (port=3718 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 1ofc0V-0004Pc-3b; Tue, 04 Oct 2022 03:06:23 -0400 In-Reply-To: (message from Richard Stallman on Mon, 03 Oct 2022 21:01:59 -0400) 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:296844 Archived-At: > From: Richard Stallman > Cc: emacs-devel@gnu.org > Date: Mon, 03 Oct 2022 21:01:59 -0400 > > 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. Actually, it can be used for many more specific jobs. Basically, any job that requires understanding of the program's syntax and structure can use language servers via Eglot. Someone else posted a longer list of such jobs: > - 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 And the full list is really unbounded (although some jobs are not yet supported by Emacs, perhaps because they are too hard or impossible without a language server). > 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? Yes, AFAIU. > Does Eglot aim to make use of parsing in all the Emacs features > where it could be of use? It provides an opportunity and infrastructure for doing that.