From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Is it better to add treesitter modes to core? Date: Sun, 7 Jan 2024 09:46:51 -0800 Message-ID: References: <87a5phiap4.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29923"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stephen Leake To: Dmitry , Philip Kaludercic , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 07 18:47:59 2024 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 1rMXFf-0007Z0-9g for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Jan 2024 18:47:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rMXEh-0003ga-FQ; Sun, 07 Jan 2024 12:46:59 -0500 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 1rMXEe-0003g7-EP for emacs-devel@gnu.org; Sun, 07 Jan 2024 12:46:57 -0500 Original-Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rMXEc-0007B5-H8 for emacs-devel@gnu.org; Sun, 07 Jan 2024 12:46:56 -0500 Original-Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-55745901085so1324530a12.0 for ; Sun, 07 Jan 2024 09:46:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704649612; x=1705254412; darn=gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=Gpy59UfslLP7oagCbx8314iGaH2/5F5zEvA+DLKZmzg=; b=V70fju+ygzuwlzhLb8lFanjf1FJInPY+qq2t6IblA6wmL1qzAFb/ku/cGcZSDuFENn KvS701iFIMsuLxhLCPSBp6yfyDhW7qLb/6nOQdcvne2UWbaamwWqDTdTFdofIPb47qMo QBaf0btmWAXl1qoxOarIz0oTB6vWpN9jl1+/iAUx7NzM6v7HiHE6SJP+pgb9xZT78uBU qXAlFF1kVg3x7WCIyf9xoas6asaZahFGH9mky5SAz61pmAMan24wYLYSn0QoECozXNUc 5QFFrcTu205X1bVhtTP+La10E+6CqZaNSrHkMHSQIPjUhi5sZzBXsdkCOHRC1v6e0I7s vreg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704649612; x=1705254412; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Gpy59UfslLP7oagCbx8314iGaH2/5F5zEvA+DLKZmzg=; b=vI8nP97mWEneLz/ru9W1ek+CWTlVG2l0zLnIUBmCVSbTPKfKJUpLAGMi/lraBtrWnV 0MppYUavK2mQ/LTA9D0o5I8lqNRHXVCIyXDyrAHJR6LFRtT5oPKcL+LDl82qulxjGykE Q+iv34vq2fiDC0odp6qHsAK4ehSeajEBuNhnwmTgcE/V5hCcCHT+y1oJhfF2sTNwFiZp h0lsRVIh+D2rhL+H7D9z392kBH9tB8ivfc3GWFTzODJxY5dr50M3gY/frHrf2GtJmXuA HfTL/b8pqex7grBhmVx+T+hdxw3zM1Zz4LQsnK5FJIef64ODmXC4o+n3ddtO3wuUlpbF ixYQ== X-Gm-Message-State: AOJu0YxfhK//TIb/ss+I0Ybn2wlUODiKrdTTAfWtSMDdybgNRwVLB1yI D1QyGWkXhTahQJVWnyJfWnI6mhDVmGy2u6SmAGejsSJAF+8= X-Google-Smtp-Source: AGHT+IFRSxAvPv3U/q5dI5h9XpkIQv5vsMby9fUMWH/wVDyQQnOeAjUF9TjG99at5OOPqw2ExQzYZUPQ3ipBqbH2eyc= X-Received: by 2002:a05:6402:1a31:b0:556:e0ee:9ac1 with SMTP id be17-20020a0564021a3100b00556e0ee9ac1mr1453097edb.60.1704649612103; Sun, 07 Jan 2024 09:46:52 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 7 Jan 2024 09:46:51 -0800 In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=stefankangas@gmail.com; helo=mail-ed1-x534.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, T_SCC_BODY_TEXT_LINE=-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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:314703 Archived-At: Dmitry writes: > On Sun, Jan 7, 2024, at 2:34 PM, Philip Kaludercic wrote: >> What I am wondering, is if this simplification were to take place, if it >> would be possible to add ada-mode (or ada-ts-mode in that case) back to >> the core? > What is this fetish of adding everything to the core? > ELPA is just one 'M-x package-install' away. In Emacs, whatever real work you need to do, it's often the case that "it's just one M-x package-install" away. I see little reason for that. In my ideal world, we should have basic editing support in place in Emacs for typical tasks, and packages should provide extensions. Most users don't particularly enjoy starting work with installing a bunch of extras. Take a look at how much better things are elsewhere and weep: https://github.com/vim/vim/tree/master/runtime/syntax Yes, vim is different, their job is easier and so on and so forth. But also consider that treesitter modes are looking far easier to maintain than some of the behemoths we have sometimes had to write in ELisp. We might not want _all_ language support in Emacs, but for the main languages: why would we _not_ want it? While I appreciate the importance of workflow related arguments, from the end users point of view, it really is a no-brainer which way is better. This doesn't only apply to prog-modes, but also many text-modes. Take a look at toml-ts-mode.el for example, and tell me one reason why it shouldn't be in Emacs core. Markdown. YAML. Stuff like that. > And Ada is niche enough that even the argument of having the popular > languages supported OOtB doesn't work. I think historical context matters here. Ada is not exactly in vogue these days, but it _is_ supported by GCC, and it has an ISO standard. It's not some random novelty language for people that feel that Typescript is not edgy enough, or anything like that. We also happened to support it in Emacs for ages.