From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Brand new clojure support in Emacs ;-) Date: Sun, 03 Sep 2023 23:21:56 +0100 Message-ID: <87bkei524b.fsf@gmail.com> References: <87il9kksqz.fsf@dfreeman.email> <87o7j99304.fsf@dfreeman.email> <87zg2hsyrd.fsf@dfreeman.email> <87h6ontwfv.fsf@posteo.net> <835y4ucrz3.fsf@gnu.org> <831qficgin.fsf@gnu.org> <87ttsehwab.fsf@dfreeman.email> <87fs3x6ge7.fsf@gmail.com> <87v8cthmzl.fsf@dfreeman.email> <87a5u56atj.fsf@gmail.com> <875y4t69vq.fsf@gmail.com> <90ac490a-1d95-4704-b4f8-908b16861aec@app.fastmail.com> <87fs3v44wa.fsf@gmail.com> <14c0b906-966e-4090-93b4-eba75fbe0521@app.fastmail.com> Mime-Version: 1.0 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="17379"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: "Danny Freeman" , "Eli Zaretskii" , "Dmitry Gutov" , "Richard Stallman" , "Emacs Devel" To: "Bozhidar Batsov" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 04 00:20:12 2023 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 1qcvS0-0004Ja-1q for ged-emacs-devel@m.gmane-mx.org; Mon, 04 Sep 2023 00:20:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qcvRB-0008J4-CB; Sun, 03 Sep 2023 18:19:21 -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 1qcvR9-0008Im-Rp for emacs-devel@gnu.org; Sun, 03 Sep 2023 18:19:19 -0400 Original-Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qcvR7-0005jo-G5; Sun, 03 Sep 2023 18:19:19 -0400 Original-Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-401ec23be82so9701595e9.0; Sun, 03 Sep 2023 15:19:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693779555; x=1694384355; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dg9p6CbTv7IGL/badyGUiDF0+SfcrVpS3f4jnIW+ASo=; b=nuOh+hq2DI6+s5fbS/G+hS/2PQVeQkHZtvNr5Lk5UeAzCeKGDTfn0a1sM9A+qwDJP5 U1llTjYoHQPRihm9OIQ66ECe7pfG9pSCMqOMjwct6bSg6CwxxriznEL2It0VmnqDlmmA XMJnGJoj/cg6q7IjW+nBWCjhuB/6bkQO6v098axGv0d2LU9y7UZO6oOrRiWxht+D/J2R ET8egwe/MbJXGoK60YkET0vBHKcLlAiAbYSpxt7CJAEWX9r6L65gOVP0R5HS7rYwQRqj 7TbnkFJsJU5+/cvqrmNxmCyvvXKWR6f0xmjJz+cemIHcgVFqGwM+ybKXJ+vcGrLhqe46 iOwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693779555; x=1694384355; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=dg9p6CbTv7IGL/badyGUiDF0+SfcrVpS3f4jnIW+ASo=; b=G/jlNuqGY+zWkoK8hy0DgTKHd2Qwz3owPE04vqgP3LdeqEcGQcU7WnLaWHBgq2Q7cm 5alN+4pVfe1PFgNENaeAvOqCuFfI6lCts7x2mCdEdqpB4sUJmje27foTPXrHTOBF5eK0 sefM0OFX/MjOM1x0y4DwyIdKr39HO6+cLdDEN8dH+OQsBI5vploaQbdrdUOK0FBBXFDB MSsARlDHbzMG8Ren4DaCDHnhR38oYfDGZfYhcJUwHNFdPJ9T+2YLuREsXZYHQ/PZ5m0q Fpmt9MAcBW50hUNKPLHnKFWhUBAr4CBv95slfdxVmvFt5CvrBM7Igo5aVJ+e/OpdgUAN dk6Q== X-Gm-Message-State: AOJu0YwOKXCjOuJajvzQS/yD1C6l0fChARC3YCmCtN+3I9n6CgwyrqGk vJsaD08eCFXRSSoWOxPlO/G9dvZrfRxVBA== X-Google-Smtp-Source: AGHT+IGNBoKsUNjJ+zfMVnmLmUdwf9GR0h17nC+5EoeTrociS5kMRVDkyia+tqoLmKW3hMVpd2UATA== X-Received: by 2002:a05:600c:21c1:b0:3fe:1871:1826 with SMTP id x1-20020a05600c21c100b003fe18711826mr5713883wmj.27.1693779554666; Sun, 03 Sep 2023 15:19:14 -0700 (PDT) Original-Received: from krug ([87.196.74.0]) by smtp.gmail.com with ESMTPSA id l9-20020a1c7909000000b003fe1c332810sm15357108wme.33.2023.09.03.15.19.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Sep 2023 15:19:13 -0700 (PDT) In-Reply-To: <14c0b906-966e-4090-93b4-eba75fbe0521@app.fastmail.com> (Bozhidar Batsov's message of "Sun, 03 Sep 2023 22:38:07 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=joaotavora@gmail.com; helo=mail-wm1-x32e.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, 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:310028 Archived-At: "Bozhidar Batsov" writes: > Sure I got that. And currently CIDER is strongly coupled to > implementation details of clojure-mode. > > You say it like it was some design failure, No, I didn't. You're again imagining things. I'm just stating objective facts which are pretty relevant if one wants to add CIDER interoperation capability to the new major mode that is the subject of this thread. > The APIs that are being used are things like "find the current Clojure > namespace", sexp-related functions, etc. Yes, that's what I meant by "the existing informal API between the two realities: major mode and CIDER overlay minor mode". Those things you mention are very similar to the coupling between SLIME/SLY and lisp-mode. If someone wanted to make a new Common Lisp mode (say, a TreeSitter one) and they wanted to use SLY with it, the same problem would arise. And yes, it is easily solved. > I clearly wrote about integrating with CIDER, not rewriting it. > So, again, you're really reading things that I didn't write. > > Well, you did speak about RCP and there's nothing at the RCP level > happening between clojure-mode and CIDER. (all the RCP-related code is > in CIDER) The APIs that are being used are things like "find the > current Clojure namespace", sexp-related functions, etc. What I wrote is that there's nothing transcendental that I can detect about the architecture of an RPC system for Emacs like CIDER. There's a major mode, a collection of minor modes and a reflection backend in the host language. > experts". I'm not an expert in LSP and I wouldn't dare to lecture you > how to do things in eglot, but I do know a bit about Clojure, nREPL > and all the Emacs packages and I happen to know what we've tried and > didn't work out. You want to brush this aside, for reasons that are > still unclear to me. That's the thing: Noone is lecturing you on anything. Noone's even asking you for anything. If anything it's the other way round, you seem want us to literally sit through a lecture of yours on the subject. > If all this is not a paternalistic attempt at dissuasion, it's at > least odd from someone who's already said he's not interested > in contributing to this endeavor, and who's not really being > asked to anymore. > > What "endeavour" is that exactly? Bringing > clojure-mode/clojure-ts-mode to core or replacing them with 2 lines of > code? Writing a new major mode, of course, a direct: * consequence of Richard's request * your refusal to integrate clojure-mode or clojure-ts-mode * Philip's interesting suggestion It's the top message of this discussion, have you read it? And yes it's two lines of code, but you have to start somewhere and that's what I did. TreeSitter could also be useful later on, for font-locking, etc... > And who started the conversation in a hostile manner? If I didn't > happen to be subscribed to emacs-devel I wouldn't even know what was > being discussed here, given how events unfolded. Is it really > surprising I'd be unhappy about the communication on the topic so far? What hostile manner? Do we need permission from you to start discussing Clojure editing facilities here? Jo=C3=A3o