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: Re: Unifying "foo-mode"s and "foo-ts-mode"s Date: Fri, 30 Dec 2022 13:08:12 +0000 Message-ID: <87edsh9gzn.fsf@posteo.net> References: <877cyagmti.fsf@posteo.net> <831qoi85u7.fsf@gnu.org> <87mt76f4n4.fsf@posteo.net> <83sfgy6l0n.fsf@gnu.org> <877cy9b1k0.fsf_-_@posteo.net> <87wn69oy1c.fsf@thornhill.no> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22099"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org, Yuan Fu To: Theodor Thornhill Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 30 14:08:56 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 1pBF83-0005Wa-Kk for ged-emacs-devel@m.gmane-mx.org; Fri, 30 Dec 2022 14:08:55 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pBF7Y-0002O3-Ew; Fri, 30 Dec 2022 08:08:24 -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 1pBF7P-0002NM-Gt for emacs-devel@gnu.org; Fri, 30 Dec 2022 08:08:16 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pBF7N-0001SU-7T for emacs-devel@gnu.org; Fri, 30 Dec 2022 08:08:15 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id EC651240084 for ; Fri, 30 Dec 2022 14:08:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1672405689; bh=7ygmp3fPBV8AO51lgfaTInQUb2ud3n1BwTnRictjskY=; h=From:To:Cc:Subject:Date:From; b=OU07r4JIoneBId5yGnJxaoAMU1OsBTKiXWyfOgwFpcRSeVdz6GfnrFGnFPJMEd1Xj 6lloEr1wHWYRINaO43KUSvpgUT2zLnEJNJj5mkBghylti6wwUgji8hBTu78HQlqubk IBhgphIST5jT7hPfV7zLjBhIGv2MLldCS9B7F5GHLA1hiUXt5nxEl4+HfTWNwwLr31 EXOl4KfgFcErFNGL2uZAqU12Tj+Zj70BZwqZIh/7cYAbIyZEJaRNy7bIe7EexfTI17 hL5v99bd2Pnz6oQq+b8l7AAccu5fco6LfqCQY+7UF2ultRHS0FUn15iJ5NUC5F/ZK5 pRVDlaN9JSwxA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Nk5Cn6CWxz6tmG; Fri, 30 Dec 2022 14:08:05 +0100 (CET) In-Reply-To: <87wn69oy1c.fsf@thornhill.no> (Theodor Thornhill's message of "Fri, 30 Dec 2022 13:50:55 +0100") Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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:302101 Archived-At: Theodor Thornhill writes: > Philip Kaludercic writes: > >> Eli Zaretskii writes: >> >>> You can try. I would like to start a full feature freeze in a day or >>> two, so I'm not sure you will have enough time. And it isn't like we >>> didn't try various approaches during the past two months, so frankly I >>> don't think that a better way even exists. But if you come up with >>> some very bright idea, who knows? >> >> I have attached a sketch of my proposal with support for Python. >> Instead of a separate python-ts-mode, we regulate tree-sitter support >> using a user option `treesit-enabled-modes'. It can either be a list >> > > [...] > > IIUC this will make all other config run before the treesit-related > code? If that is the problem, that we can solve that by re-adjusting the order in which the expanded code occurs. > In that case I think this cannot work, because we _don't_ want to > set all the before/after-change functions many modes set, for example. What exactly is the issue here? Can't we overwrite it again if necessary? > Theo