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 19:04:52 +0300 Message-ID: <83bkqjhdgb.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> <83zge4gk9z.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40424"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net, casouri@gmail.com, theo@thornhill.no, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 10 18:20:18 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 1ohvVo-000AHj-Vo for ged-emacs-devel@m.gmane-mx.org; Mon, 10 Oct 2022 18:20:16 +0200 Original-Received: from localhost ([::1]:39928 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ohvVn-0006a0-Mi for ged-emacs-devel@m.gmane-mx.org; Mon, 10 Oct 2022 12:20:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55696) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohvGq-0001tx-U5 for emacs-devel@gnu.org; Mon, 10 Oct 2022 12:04:51 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34740) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohvGn-0004m3-SE; Mon, 10 Oct 2022 12:04:45 -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=S32dLtGLaYu9UUZxbqcX6oI9/T7GuagYixRVOOR0G4g=; b=MIudq9DjxpLg cempzRx4XmYwelYbfVh3ihZN3o1sVgGph1MA0pkUzQC3gA66PScRHsQ1g864BHXTLaivW88DPQPvI PsGUE9ehhZi4dWFLRevpNq+IeI9QoV5+UroU9JvVuJ7afOyQbL+t9CM9WUi2v1PGkhwM9RP+59xkF DAgWXdzoZ6cWOxaWjaSD21MvKiPxR/UaingbXH0ehVv4tOJE7dttDOqvlxCmUzPmpWO3JKgSSz5hS 5XbRnXMTOfwDKkvBnjL84s4Lgjbejqu87OKI/f/46sDWdF8tJnBq5tBLLqOW4E7aTgDMbgzi7BoKQ p2mgOSTfo3leXzfL3QKN2Q==; Original-Received: from [87.69.77.57] (port=3191 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 1ohvGn-0004s9-AA; Mon, 10 Oct 2022 12:04:45 -0400 In-Reply-To: (message from Stefan Monnier on Mon, 10 Oct 2022 10:52:21 -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" Xref: news.gmane.io gmane.emacs.devel:297379 Archived-At: > From: Stefan Monnier > Cc: Philip Kaludercic , casouri@gmail.com, > theo@thornhill.no, emacs-devel@gnu.org > Date: Mon, 10 Oct 2022 10:52:21 -0400 > > I think a buffer-local `treesit-mode` plus a `global-treesit-mode` would > make a lot of sense, from a user's perspective. This way they don't > have to hunt for the name of the boolean variable that their mode > decided to use to control the use of treesitter: all modes use the same > boolean variable called `treesit-mode`. > > Then again, to me a minor mode is something so cheap that the idea that > "justification for a minor mode was too weak" is rather hard to grasp. That's okay, I was the one who proposed a minor mode to begin with...