From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: Need for "-ts-mode" modes Date: Thu, 29 Dec 2022 17:08:09 +0000 Message-ID: <877cyagmti.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37163"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 29 18:09:19 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 1pAwP8-0009UX-S5 for ged-emacs-devel@m.gmane-mx.org; Thu, 29 Dec 2022 18:09:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAwO5-0004uw-50; Thu, 29 Dec 2022 12:08:13 -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 1pAwO2-0004uf-9h for emacs-devel@gnu.org; Thu, 29 Dec 2022 12:08:10 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pAwO0-0006Nc-Do for emacs-devel@gnu.org; Thu, 29 Dec 2022 12:08:09 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 38B682401F0 for ; Thu, 29 Dec 2022 18:08:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1672333686; bh=M9wDGxXgDzAH4i2/ckWvB12RJVyiO+eUdw6SQy0tCPE=; h=From:To:Subject:Date:From; b=nPLNUW8gjmwc1P4NZP8RzzCCPBSgq/sq7DEChxPsT+B0cmH+g0gWRZgdLC0RA61k8 1/0LafsSMr9oFg+5SxURb1UKzXiwQn6DGOFcPupjTg6+IBm5NZDtb+AyCWOGYBKDzS HTWHVESsY7ozEN0SgfJQ3CYAGpubfOZw3PD105J+4xiiOCCZXzrJCl3kEdpJBiL/SG MtG8BLgdk0KKyOxeVn3YezdD/VBc/2vvlUKrflxzULgT1faRXYaqx+B+SL7H0KsVbU CHGVSVEezY68B6O3qgnvPvJ0iRYnatuiXuX+KcE548heJivX/fiPQIlMvPX3SyIhhv H5hCDwmxeRCcg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NjZb76t3mz9rxL for ; Thu, 29 Dec 2022 18:08:02 +0100 (CET) Received-SPF: pass client-ip=185.67.36.66; envelope-from=philipk@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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:302048 Archived-At: The issue has been discussed before, but I failed to understand the point of duplicating a lot of modes, or creating new modes that depend on tree-sitter and that don't work or even try to provide some fall-back if the library is not available. Or the re-phrase the question, why can't tree-sitter support be implemented by extending `define-derived-mode', ideally in such a way that can be translated to some kind of font-lock rules for basic syntax if the library is not installed.