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: Clojure mode Date: Tue, 29 Aug 2023 16:47:07 +0300 Message-ID: <83pm36gdus.fsf@gnu.org> References: <87il9kksqz.fsf@dfreeman.email> <87a5uw9ivs.fsf@posteo.net> <87ttt42gna.fsf@dfreeman.email> <87wmy080kn.fsf@posteo.net> <83v8djcydl.fsf@gnu.org> <87350ndquw.fsf@dfreeman.email> <83350ncbns.fsf@gnu.org> <87cyzrjbd8.fsf@dfreeman.email> <83zg2vav46.fsf@gnu.org> <87o7j99304.fsf@dfreeman.email> <87zg2hsyrd.fsf@dfreeman.email> <87h6ontwfv.fsf@posteo.net> <4874df51-9652-f9fd-0576-9dd6a4cba31a@gutov.dev> <3d5ef276-ce6b-9ff0-0c60-1da6b887b365@gutov.dev> <1070e416-2a13-49e0-90d4-fbc526cd461c@app.fastmail.com> <83ttskia84.fsf@gnu.org> <97c96b72-ebba-4853-98d2-86e3ba8bbc05@app.fastmail.com> <83sf84i9ix.fsf@gnu.org> <837cpfhzdm.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33157"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dmitry@gutov.dev, rms@gnu.org, emacs-devel@gnu.org To: chad Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 29 15:50:01 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 1qaz6U-0008Lx-Lu for ged-emacs-devel@m.gmane-mx.org; Tue, 29 Aug 2023 15:49:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qaz5c-0000tq-Rw; Tue, 29 Aug 2023 09:49:04 -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 1qaz5V-0000pR-Mc for emacs-devel@gnu.org; Tue, 29 Aug 2023 09:48:59 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qaz5U-00069s-FR; Tue, 29 Aug 2023 09:48:57 -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=SNkXtr3lE35Cj/iCfpNOlo4nO0Dxf/hUej5+6VmQUgg=; b=IfHJJGArsooF ccvRuodVzcnF2YNy0mymay3g+PiCPPAC+Mx+yqEOxDhQjqhQ7cQcaT0m2cReDodjcj4lZo6KWFdaj tYRurSuDyab3BGW28Z1sicFuzc8BGXZ6SCg6JHJwLDuaWei3rkOtZh49RzhzZLgGPxxLgnCXB7Fb+ 0fy+zmrFZk7fXy5nDmUE48X3WGPMi3/eW28FeGBSRLXPdBtfUV4ndJ2OG3RnX4Agep/nm4EpRoW8s JlrZ9H6zNg0STKkv9YC6iSEOh/tQgvRcDsfw/mlhBRyWm3gBXXK1isbdj5+MlGb/yYdm8D7XCiNef pb7hI1lihzP5ySuIKwco/g==; In-Reply-To: (message from chad on Mon, 28 Aug 2023 16:51:12 -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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:309506 Archived-At: > From: chad > Date: Mon, 28 Aug 2023 16:51:12 -0400 > Cc: bozhidar@batsov.dev, dmitry@gutov.dev, rms@gnu.org, danny@dfreeman.email, > emacs-devel@gnu.org, manuel.uberti@inventati.org > > What I had in mind was something akin to autoload that, rather than providing _any_ clojure mode (in > this specific example), instead provides the user with a buffer conveying that Clojure support in > emacs is available, but is not currently bundled directly, and offers the user a short description of > each of the two packages clojure-mode and clojure-ts-mode, along with buttons to install and activate > each package. > > Thus, if a new user started a freshly downloaded emacs, they would find some guidance (rather than, > for example, "[No match]" from M-x or fundamental-mode from opening test.clj), and we could provide > some short info backed by the full package description in cases where there was no current > always-recommend. The message/guidance could be conceptually similar to the disable-command > machinery. > > I had autoload in mind based on the idea that this guidance code would be supplanted by an actually > installed package (and, I think, ideally restored if the package was later removed). In other words, I'm > suggesting adding an optional dispatching step for the paths most likely to invoke a > not-directly-supported-in-core language. > > Perhaps *eventually* something similar could be done for suggesting say, c-sharp-ts-mode and > cc-mode for a fresh emacs and "C-x C-f test.cs". I imagine that there are refinements that could be > useful for someone who wanted to try assembling a small-core emacs, but I'd be surprised if there > weren't important lessons to learn before that point. > > I hope this description is clearer; please let me know if I missed or forgot anything important. Thanks, it's more clear now. However, this is a kind of feature we never had in Emacs, so I think we should first discuss how to present such suggestions to users, and also how to keep the database of packages we'd like to suggest installing in this way.