From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Mode names for C-like tree-sitter modes Date: Sun, 13 Nov 2022 17:16:13 -0800 Message-ID: <3C23FEAC-6550-48BE-91A3-443B44717C40@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28688"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 14 02:16:58 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 1ouO5q-0007Ex-P6 for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Nov 2022 02:16:58 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ouO5F-00072M-El; Sun, 13 Nov 2022 20:16:21 -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 1ouO5D-00071a-Lq for emacs-devel@gnu.org; Sun, 13 Nov 2022 20:16:20 -0500 Original-Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ouO5C-0004VS-27 for emacs-devel@gnu.org; Sun, 13 Nov 2022 20:16:19 -0500 Original-Received: by mail-pj1-x102a.google.com with SMTP id d59-20020a17090a6f4100b00213202d77e1so12432898pjk.2 for ; Sun, 13 Nov 2022 17:16:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=AooStoqtkXBkvhFwNB8Wyrjf4LOWKF4A1piXIVqA6Do=; b=F5Ltbw7G6klJChN5EBXNUwYjL7kNASRAx5YMX8jOQdlZy7XOoLsxqvTleMOTAIMJUo gRr20aeQOV0E/gMCpNOfSS6p7CMzPJOdi34O/Phlr+UBQNSvji9QstCoCBBhP9OJ2equ pcr+Z549hsKtbb4euS4tGe+bEJWJuTsqu2jZPMGvfvYkPDc5QpPp2SmxRoWsqyuPMjKh w09B3z6Ibo5yZZxECS9bUWIV5sWtJVAW2x6HuVkB5/BCFkmN49EWmrUrpllI50eb6Nxc YZ6gIjJWCGeyO7AHCwH2eUZihFbOhnz6IIbSb1WkZDVJ+si6RNVKfkJEGlro8oPGjaNg KoRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AooStoqtkXBkvhFwNB8Wyrjf4LOWKF4A1piXIVqA6Do=; b=XphLU5tAi3TEzPaDKG6TKvdHj1UcZBxLBbUjtAQE+Jkq1cn+qAxuG2iMSNNAe9sHdu dEvJp6HV9X1StEqTKPW3zTWIEbofaAX1yEBnyJv0JxIsQ0LElHIXU6xMnVPXy12jE9lH IV0iUGFd866wi2XIJL4A9VMvOaYqSRwokri4b0ehmzaSrEIbCij6LmNgep6ZPwqtJFZf uYoybzj3rAlyPhWdkJAawf1Y7z7fkcOl8pnWVsMl137xanGa/AGBi4swGVEswtXEAuRq lhwK4ys/VHge5vlfkJ1zYnnEHDpKX66obVPG9XJ/kl/7V/bJe3QS9RJRqW0TewC/biMY BnvA== X-Gm-Message-State: ANoB5pmHo9xO+txrSu5qS+rC+HyAurLLAiOPF9EY4hnv4AoaGBL7n+Pt ORTLezs+NRC/fZAjOSmVpQrtm/4Nu7I= X-Google-Smtp-Source: AA0mqf60p967g2erXznQXOL7iMU6TRHCchbQJCRsnabwEy4S47aOYsYlcc+6BScfJczRuDmE+KqsDw== X-Received: by 2002:a17:902:ab14:b0:186:7db1:d2a4 with SMTP id ik20-20020a170902ab1400b001867db1d2a4mr11449310plb.84.1668388575237; Sun, 13 Nov 2022 17:16:15 -0800 (PST) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id w5-20020a170902e88500b00177f82f0789sm5854015plg.198.2022.11.13.17.16.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 13 Nov 2022 17:16:14 -0800 (PST) X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=casouri@gmail.com; helo=mail-pj1-x102a.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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:299767 Archived-At: Thanks to Theo=E2=80=99s great work, we now have tree-sitter powered = major modes for C, C++, Java, JSON, CSS. Right now they are named = c-ts-mode, c++-ts-mode, java-ts-mode, etc. And c-ts-mode and c++-ts-mode = inherits from a dummy mode c-ts-mode--base-mode. I think it=E2=80=99s fair to make C, C++ and Java modes independent, = since all the cc-mode options are invalidated when we use tree-sitter. = However, their name could be improved, IMO. But I can=E2=80=99t think of = anything better than c-ts-mode :-) (neo-c-mode=E2=80=A6 just saying) c-ts-mode--base-mode should probably be a public mode, since the = intention (IIUC) is enable users to configure C and C++ together, by = adding hooks to this base-mode. So something like c-base-mode or = c-ts-base-mode? CSS and JSON could be merged with current modes, I think. Css-ts-mode = could merge with css-mode, and json-ts-mode could be merged with = js-json-mode. Or we can just have a dedicated json-mode. Theo, WDYT? Yuan