From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Renaming eglot -- or at least add an alias? Date: Tue, 04 Oct 2022 10:43:52 +0800 Message-ID: <87wn9gz4t3.fsf@yahoo.com> References: <83pmfdduix.fsf@gnu.org> <86wn9ji3ma.fsf@gmail.com> <86tu4lsnqk.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16820"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Tim Cross , emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 04 04:45: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 1ofXw6-0004Ez-8m for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Oct 2022 04:45:34 +0200 Original-Received: from localhost ([::1]:59374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofXw4-0004I0-LD for ged-emacs-devel@m.gmane-mx.org; Mon, 03 Oct 2022 22:45:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofXuh-0003Vc-LK for emacs-devel@gnu.org; Mon, 03 Oct 2022 22:44:07 -0400 Original-Received: from sonic316-21.consmr.mail.ne1.yahoo.com ([66.163.187.147]:34755) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofXug-0004Qt-2E for emacs-devel@gnu.org; Mon, 03 Oct 2022 22:44:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664851443; bh=EnftiAbijOSMpDBYNTG3tio2Uz6x5hIN997xs7Jwems=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=c4vxJHJvvGeL4TniUnPAf34UkE3hSecvb+fnXZ11F061MQEIoSInQEwf7Qox0Z3u/CqfCqDg+l30NIsCbhdptbl5IZVEmkrFCm+q5esReHBZ/PhkHpQE6WAtmo1iNVqUVMsIEdQqC6bNkBsZf2lrFCY5wNxBLHa8gwY2Tozd+3S2gQZ/cX4b8EI598Ynqm0rb9P0cpSFRgFnhq7DIqm48w8ByO8Uve6OuOdk2TKprq8IObCYLeSqJNEBtEhY4O17p8H4HxUu9cp/JtJ6KFMue8npuGSG8GkOHUCZTLNvVIKdIiROJLfeKpbFDq1MeC1bt7qYFayJNLwZwaX0RpJWCA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664851443; bh=d949tBlXIecrDheVEl3rkjF0bCqUWG+gshDpEOmexBz=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Dt14SbcyPR751OrLWZCTM13iS+4bShuqQddzZ5juDReErH3YSZzZP63NN+TZGTuw4gzO0Xz89IydAqY2NGUTxNXCRp5dbotrR+YCia3M6Rq34XOj9Kkt02AQjOmaxQueCYu9UfEmL4kZvpqOHQwG6nYGEMVhB3yqIMVASHSao9+O3ww1WNxd/v9aYb5KjYnowQlz5ORP9eOVJM0c8bbmklhVv2u4Gju3PpYun3h6DOOjqTiJL4Q0vX3VrmneaK+lGonUjVTyU5OFAng2hFbh/d7GNdwplbHDyaU8SA+d/fzP/Fi++5na9qb8L6hwsZZCzyB43gVj7XYXpt3oCDEjng== X-YMail-OSG: tGCtvZQVM1kDeCI4c_V.heQAMTcHvRboAO7cafvw5ar2zRg5tQFTHahg4zKHCMn dmCtrcg8KuZhWjZDCI2.RMXSSuSZTIdSkx0KmCf3V_3EkxkLUTS0j8O6UzmZH.fXxvxdeB7pFORE 1g6Dqk5kZkTiKgY28abyE94wmf9mg0._tx1bdofsUcCYFGLaoJidZwxjhKWgtYJ3ialqmp1tRTcG eUnvlbk_OhbbBffMyivu7eyVTMk396sKHzfIBSNY7UWKwP6oC14gH8NPgTE8Ob4m2_LKtYkyGmi1 rrYqdynDlbDe4WbAJnTqohscjqOcaRisOOWapHgmvyovDH_4mCtj7XtOf53nAEWaPyNNH97uD.vX AgPkGmlk6yxmpfC0c27n2EYKSoQap7LiacTB8YVRiAUP3KA6OwF3aYi87r0VlRaaZFVCM4MGWbG9 JqJvqhraqqqFM6dlXdzf2ggdXcU44dZQDV.ObgEb8krUunVSfCdqo0LoadSTV6m8f8bF5T99uO7S ZeX1RUNwkiMYJT8cMGPbzh_FroNgAQSCEIBGuiSkapz046ApBxtnFURtinFKd..QMOfnWQlGeRjD KI4fO04yMXbPZHshVjgCjeJZBO3fQt_Mp2ZM1Uqn3LmVY8j6ieFrQVk3WX_XeUjWTDGr1xWoK6Bj J_3yHiLA0pZyObAXxsxfllpjef2AX3D8zm6VvT4Zu0PJcQ.xQFkmj7QSCHN3qZAjU_nCN8HM_j1B SBYKNAx3UhyjAw5eryQNNb42PMWodP6pPfc751_.WkmxDFL9_hzo1qmxKqDSCA4W.7EYv7yAF4GU 4EIUDnZMx0UQuLMzCNvFAf4PF__97F4BqvKlebtU8x X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Tue, 4 Oct 2022 02:44:03 +0000 Original-Received: by hermes--production-sg3-cf9dc7f8d-4879b (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID f3cc5acac4c518530693263561d22ac7; Tue, 04 Oct 2022 02:43:57 +0000 (UTC) In-Reply-To: (Richard Stallman's message of "Mon, 03 Oct 2022 21:01:59 -0400") X-Mailer: WebService/1.1.20702 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.187.147; envelope-from=luangruo@yahoo.com; helo=sonic316-21.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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" Xref: news.gmane.io gmane.emacs.devel:296833 Archived-At: Richard Stallman writes: > 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? I think eglot aims to hook into existing commands and subsystems whenever possible: flymake, completion-at-point, xref, et cetera. > > - 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? Yes. > Does Eglot aim to make use of parsing in all the Emacs features > where it could be of use? I think so, yes.