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: Make all tree-sitter modes optional Date: Fri, 20 Jan 2023 10:30:25 +0200 Message-ID: <83a62dobfi.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1079"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Pedro Andres Aranda Gutierrez Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 20 09:30:57 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 1pImnZ-00008T-NM for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Jan 2023 09:30:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pImnB-0000Bd-P8; Fri, 20 Jan 2023 03:30:33 -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 1pImn6-0008SK-5A for emacs-devel@gnu.org; Fri, 20 Jan 2023 03:30:31 -0500 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 1pImn5-0006FO-SK; Fri, 20 Jan 2023 03:30:27 -0500 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=VrUJEQdvFcGV8aqXSj19Bv4NJM+dSkqASnuTam8+J/U=; b=SJ+v6+LUbSQI uM0dhnYhn9kz0hFyqLBZtg5e7eyQY59J04Z1hbEFJAT4ARpPdTaSdc5uyCvdmz1gixpQtkAr4D2eh R2SOttWRvMXvEyoMLWojw4AmhRuWh8bPKv3NOOIEHKVJu9tLo6z79NKF3y8kwPu5mJfAO6mSpDFSl 55Dfob2tUhQO5rcX3M4GBT+X6AGrz5shTu3iI4OJ7VCZDH8ibD3h1D1ksnHvSK+NdAgd7APwX4AgH tuWDMy0Q9FPKWp/y/xsZuSozauwLnXYI1eBU+Yjz/KLHoBqpHRKMDNCKkKu4HVLyJAMi8+j5EHbr5 mEUsv3YflZA9sm+eaUuaTg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pImn3-0001Cd-Kd; Fri, 20 Jan 2023 03:30:27 -0500 In-Reply-To: (message from Pedro Andres Aranda Gutierrez on Thu, 19 Jan 2023 17:53:06 +0100) 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:302569 Archived-At: > From: Pedro Andres Aranda Gutierrez > Date: Thu, 19 Jan 2023 17:53:06 +0100 > > Now: My experience in the last couple of weeks is that there are tree-sitter modes in the Emacs tree that > have non-ts counterparts in MELPA only. And that's been frustrating. Basically because I don't compile ts > support and despite that, the treesit .el files are installed and used. Example: dockerfile-mode is in MELPA > only. So when I recently opened a Dockerfile, I got an error saying that Dockerfile-ts-mode couldn't start > because my emacs hasn't ts support compiled in. > > I would have prefered to see the dockerfile opened in text mode with no errors. And then, when I install the > Dockerfile-mode package from MELPA, start working with all the goodies I got from installing the package > from MELPA. > > My gut feeling is that if I don't have treesit support compiled in Emacs, I don't want *-ts-*.el files in my elisp > tree nor any side effects related to these files. Sorry to say, but I feel that the enthusiasm about treesit some > have is a bit pushing for me. And I feel uncomfortable when pushed. Please try the latest emacs-29 branch, where the tree-sitter based modes have been made entirely optional.