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: Turing on tree-sitter Date: Mon, 10 Oct 2022 11:22:48 +0300 Message-ID: <83zge4gk9z.fsf@gnu.org> References: <83czb1jrm3.fsf@gnu.org> <87v8ot2nfi.fsf@posteo.net> <837d19jfia.fsf@gnu.org> <83edvgi3mx.fsf@gnu.org> <87r0zg5g76.fsf@thornhill.no> <78205E8D-B2D4-4460-BE0A-9BF7C627A79B@gmail.com> <87zge4b0lc.fsf@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21446"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, theo@thornhill.no, emacs-devel@gnu.org To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 10 10:32:20 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 1ohoCy-0005GV-7Z for ged-emacs-devel@m.gmane-mx.org; Mon, 10 Oct 2022 10:32:20 +0200 Original-Received: from localhost ([::1]:33758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ohoCw-00030c-Pz for ged-emacs-devel@m.gmane-mx.org; Mon, 10 Oct 2022 04:32:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oho3e-0008CS-Le for emacs-devel@gnu.org; Mon, 10 Oct 2022 04:22:44 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58402) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oho3e-00012C-5u; Mon, 10 Oct 2022 04:22:42 -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=OFyfZEXSS+o5XtQswBwU218UNW5Pr8wYWq6OWy6CxqU=; b=LjZ2umW/HW51 9iaDZQeVaYSghVjH51SeGzXNvDjTqahi1vrpM3EsdLZzk8cVwfmS86T7CEG3VXKyjbnzW21x+3Y7+ d/oUkBoko0bbrTycN7viM1XZKYKi+kMaHCYfmAups/lAnp5dKM2R1vEvKiqYa+6rX9hTd6YfQ1kxJ wzvw+g9JJMgTg3iB5XtJE39EddZhRczMeMk4gnkAuHdqFCUCPAJZ1baU9fXhrxGsY5dQexDs1zndi IAfR4o88o1NEl239RkY7TlRx+CesOZStMeRzjeddaUaH8D5HlmYZVXx+kXwp9D9I80QnNCMsk8MFD rDWyFH3Tn4vucZFNWklugA==; Original-Received: from [87.69.77.57] (port=2124 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 1oho3d-0003gR-Jf; Mon, 10 Oct 2022 04:22:41 -0400 In-Reply-To: <87zge4b0lc.fsf@posteo.net> (message from Philip Kaludercic on Mon, 10 Oct 2022 07:26:55 +0000) 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" Xref: news.gmane.io gmane.emacs.devel:297337 Archived-At: > From: Philip Kaludercic > Cc: Theodor Thornhill , Eli Zaretskii , > emacs-devel@gnu.org > Date: Mon, 10 Oct 2022 07:26:55 +0000 > > > +1 for this, but also add a third possible value to per-mode customs > > that keeps tree-sitter always off for the mode. That way someone can > > enable tree-sitter for all but that mode. Are there precedents for > > such ternary variables? nil, t, and 'never? > > Is there a reason we can't use a minor mode? Something like > > (add-hook 'python-mode-hook #'treesit-mode) > > or a list > > (add-to-list 'treesit-modes 'python-mode) > > ? We could, if a minor mode is justified. When this was previously brought up, someone said the justification for a minor mode was too weak in most cases. But maybe we should revisit that idea.