From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Renaming eglot -- or at least add an alias? Date: Wed, 12 Oct 2022 16:05:50 -0700 Message-ID: References: <83pmfdduix.fsf@gnu.org> <86wn9ji3ma.fsf@gmail.com> <86tu4lsnqk.fsf@gmail.com> <8335c0p2fn.fsf@gnu.org> <83leproov6.fsf@gnu.org> <83fsfzonwn.fsf@gnu.org> <5a1e604c-4500-a476-da3d-259d9057a7f0@yandex.ru> <838rlromxu.fsf@gnu.org> <83h70dk3wf.fsf@gnu.org> <83fsfxk30x.fsf@gnu.org> <83r0zdd1cy.fsf@gnu.org> <83pmexcy1n.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17712"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rms@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 13 01:07:14 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 1oikok-0004Tf-Bu for ged-emacs-devel@m.gmane-mx.org; Thu, 13 Oct 2022 01:07:14 +0200 Original-Received: from localhost ([::1]:47612 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oikoi-0008KS-VN for ged-emacs-devel@m.gmane-mx.org; Wed, 12 Oct 2022 19:07:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiknY-0007V7-5c for emacs-devel@gnu.org; Wed, 12 Oct 2022 19:06:00 -0400 Original-Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:36599) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oiknS-0001X4-PN; Wed, 12 Oct 2022 19:05:59 -0400 Original-Received: by mail-pl1-x629.google.com with SMTP id c24so265173plo.3; Wed, 12 Oct 2022 16:05:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=MPud18c8MwC5X3Z+KTO3rnOrM2crmqFCo6iFKnveTnE=; b=L+fw4N5YdvuRlgKGuwPJX9CwNQqcoKkWclenxAVOHeLbBA3NgXasEPiEVx7773Ydrd FOhS1uo+086ZlwOFLb79CSNFViVyyJliF5BkSG6pcsdW+Os2EsITOVhcqEPD5DkxM1QS T1rHxlU6kO3EJgFvnpuI+scABEHe/7/BUOUXn5BRjicZeyWuOEuI5QRlNR5IBRmQWxBb 81XEC3U2OJK9NpEMUKChWZzILjCT9FYPGbGkK7BcLTD5EWr6YLHZ6PNFO9GZ+7Z7BHq8 RvOYb6LR8yLCip1RnzEz6tF2EYoISE8IDBGEzmSRoci2ad3j0OTvAej15tt2CJ5I7uCw 2TVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MPud18c8MwC5X3Z+KTO3rnOrM2crmqFCo6iFKnveTnE=; b=1yBh+Ig87cZn/ZNdzIVF2CkFFz+L7iy4RcBmNfk/T+pf/t5FvaZk35/gFb0ihKIiVk RPBsJJKv57P79yJowweT8kQtOvVPRqBA0tl8zsPbidUHQbQEMYDDLifkR/mtz97pCFqX /wsuPS+iSe6cKwKQMhG4X4DP8jw6dKWXS84VDPFvh2p2CBWjTeFcKPrQOsgyRnPLabnX i2ZkUSX0JoFHWsJQBMbUmi+tLyW5fn1mxglQdW01CnKJ5oYRZwckQBO4vTxizAwKAjeP a0FSUrq4L9CAZznBgZfFYGlTLHzARkGQJUQmQpvSYRrGKeUSHuwZuxqloVZvjmzhuuCq fG4g== X-Gm-Message-State: ACrzQf0/RjaKJ4Gv3GMPUuHaII/rF2fFK7WcjImgZcsSQ/Azo4QG0hHP UCJV9TWfwqN57ECD4rym3OQWNRx6hRA= X-Google-Smtp-Source: AMsMyM5/Y6hMbzsKk7PZjRij7PipbVN2l2TipEDWA2XidFubiAv5yGMwo9jcWGxcqVD16MdF6lmtJA== X-Received: by 2002:a17:90a:5915:b0:20a:d6d5:31bd with SMTP id k21-20020a17090a591500b0020ad6d531bdmr7643288pji.15.1665615952018; Wed, 12 Oct 2022 16:05:52 -0700 (PDT) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id u4-20020a631404000000b0045935b12e97sm10104251pgl.36.2022.10.12.16.05.51 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Oct 2022 16:05:51 -0700 (PDT) In-Reply-To: <83pmexcy1n.fsf@gnu.org> X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=casouri@gmail.com; helo=mail-pl1-x629.google.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, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 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:297640 Archived-At: > On Oct 12, 2022, at 12:15 AM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Tue, 11 Oct 2022 23:37:28 -0700 >> Cc: Richard Stallman , >> emacs-devel@gnu.org >>=20 >>> This discussion is primarily about our design and implementation >>> decisions: whether some features need to have more than one = "back-end" >>> or just one, decided by us. AFAIU, we haven't made the final >>> decisions yet. Whether and how users will control that comes later. >>> If we decide that each feature will have only one "back-end", the = part >>> of selecting a "back-end" is automatically resolved to a non-issue. >>=20 >> IMO in some sense, eglot and major mode sits at the same level, and = tree-sitter a level lower. Consider this: take imenu as an example. = Major mode sets imenu-create-index-function for imenu to function. A = major mode now has two options available, one function uses tree-sitter = and one don=E2=80=99t. If the user enables eglot, eglot sets = menu-create-index-function to eglot-imenu, overriding major mode=E2=80=99s= function. =46rom this perspective, tree-sitter is just a mechanism a = major mode could use, not unlike syntax-ppss, while eglot do things its = own way, replacing parts of the major mode=E2=80=99s functionality with = its own. >>=20 >> So it=E2=80=99s not really =E2=80=9Ctwo back-ends=E2=80=9D, = tree-sitter and eglot are different in fundamental ways. >=20 > My vision of the relation is different from yours. Major mode sets > imenu-create-index-function to some code that can either use > tree-sitter or some other way of detecting the symbols for the index. > That other way includes Eglot. The fact that Eglot overrides the > mode's setting is just an implementation detail. >=20 > And none of that matters for the user, btw. Users don't care much > about implementation, they only care about the possible ways of > getting the functionality, and in this case there are 3 such ways. Ah, that makes sense. Then maybe we want major modes to have more say on = what function uses eglot and what not, because eglot simply =E2=80=9Ctakes= over=E2=80=9D right now. But I don=E2=80=99t have anything insightful = to say about that. Yuan=