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: Make all tree-sitter modes optional Date: Tue, 17 Jan 2023 20:41:05 +0200 Message-ID: <83a62h2eda.fsf@gnu.org> References: <84973.1672843723@hassadar.pretzelnet.org> <83wn62xi3k.fsf@gnu.org> <83o7rexe2n.fsf@gnu.org> <83h6x5xym7.fsf@gnu.org> <83h6wr6gmz.fsf@gnu.org> <868ri140sr.fsf@mail.linkov.net> <83fsc92gbz.fsf@gnu.org> <86r0vt2fcv.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22314"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, monnier@iro.umontreal.ca, larsi@gnus.org, theo@thornhill.no, jostein@secure.kjonigsen.net, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 17 19:41:27 2023 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 1pHqth-0005bk-A4 for ged-emacs-devel@m.gmane-mx.org; Tue, 17 Jan 2023 19:41:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHqtI-0008IT-H7; Tue, 17 Jan 2023 13:41:00 -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 1pHqtD-0008Ge-Qr for emacs-devel@gnu.org; Tue, 17 Jan 2023 13:40:56 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHqtC-0000QV-NM; Tue, 17 Jan 2023 13:40:54 -0500 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=Vspilk2NQQTdQhSkxf0mHbpdXpoOj+sic/iF3s2WNIw=; b=iVVOs2kmBJrl 5miK6296btEaVNpxVKo5DDLAcUGZleGgS7DI/GlWUUo0l8EXzFurKRMw57Pnl3cjD3tPgJUErWh9a U3CoD9blODWJlK058e5hN+CeIPpXBkpEzia8Ip46sIDibFwV3IJuy9CokFAIrTKI7q7ic9sI1uUd5 +as33vqfSwbJg0p4ivUYfOGq1gwIK43pA8E8WHbNPhNZz5M/Z448hOu8KbxlabLGfueX2nZPmePtW wDCFA25X5Pj+WXL5ciTniZNO2QD/gnmgvFKVq0pOzOt6b7TxTpo9KN3UgS45z2ERmIR173f/61kO/ NynTcCV4C0Hh1yzp8g2FCQ==; Original-Received: from [87.69.77.57] (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 1pHqtC-0004B2-40; Tue, 17 Jan 2023 13:40:54 -0500 In-Reply-To: <86r0vt2fcv.fsf@mail.linkov.net> (message from Juri Linkov on Tue, 17 Jan 2023 20:19:44 +0200) 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:302497 Archived-At: > From: Juri Linkov > Cc: casouri@gmail.com, monnier@iro.umontreal.ca, larsi@gnus.org, > theo@thornhill.no, jostein@secure.kjonigsen.net, emacs-devel@gnu.org > Date: Tue, 17 Jan 2023 20:19:44 +0200 > > >> 1. The user needs to use e.g. js-ts-mode. Your patch requires that > >> users first visit a js file in js-mode, then they need to type > >> > >> M-x js-ts-mode RET > >> > >> then for the rest of the session they can use js-ts-mode. > >> But for a new session they need to repeat the same again. > > > > Or customize auto-mode-alist. > > > > This is a consequence of the fact that js-ts-mode doesn't have a > > separate .el file. If you have better ideas for that, I'm all ears. > > A better idea is a simple customizable list of enabled ts modes. Yes, you suggested that already. But I disagree that it's simple, and therefore don't agree that it's better.