From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill Newsgroups: gmane.emacs.devel Subject: Re: Unifying "foo-mode"s and "foo-ts-mode"s Date: Fri, 30 Dec 2022 13:50:55 +0100 Message-ID: <87wn69oy1c.fsf@thornhill.no> References: <877cyagmti.fsf@posteo.net> <831qoi85u7.fsf@gnu.org> <87mt76f4n4.fsf@posteo.net> <83sfgy6l0n.fsf@gnu.org> <877cy9b1k0.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="31065"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, Yuan Fu To: Philip Kaludercic , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 30 13:54:00 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 1pBEtb-0007wI-M8 for ged-emacs-devel@m.gmane-mx.org; Fri, 30 Dec 2022 13:53:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pBEr8-0007gh-W3; Fri, 30 Dec 2022 07:51:27 -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 1pBEqq-0007a3-2U for emacs-devel@gnu.org; Fri, 30 Dec 2022 07:51:15 -0500 Original-Received: from out2.migadu.com ([188.165.223.204]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pBEqk-00058I-2g; Fri, 30 Dec 2022 07:51:07 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1672404658; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mu3xF/W4lnO3h9dnVA8vwGXB73d2qTqt4BVN3vJgnI0=; b=iHgRbF/AjZJLRSBwMN5kuO5b2t36ngbL1uN1wGrA3chyrTinqkO4KEzHAgzs/0xuevc7wo 5X+1jefjRFAkpPq6reC2Jv7SdqiFrTenuE9SoL9mXdBmQXD0FgGLb+bw2jbsUMYlNHBlW9 1GJqcXjpj8U2KVzrVIoqAahLDKlbWH9/CluUONbqPpzdQ9QHPA4xQqzc5OhGY4RTRfIgRd J49Vg+cQ/Pg/1cRCUOGaFIsb0mvI2SccTfXmS21MuSOxD4Kk3nVum2kSQglC/6C/7UbubZ blm1yody6roFCAuFFWgVL+Ic1NN5uFMidpwa9mtidULkUFmn445hL5N7Ta5A3A== In-Reply-To: <877cy9b1k0.fsf_-_@posteo.net> X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=188.165.223.204; envelope-from=theo@thornhill.no; helo=out2.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-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:302100 Archived-At: 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? 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. Theo