From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Implementing cuda-ts-mode Date: Tue, 23 Jul 2024 14:38:13 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1684"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 23 14:39:22 2024 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 1sWEna-0000LN-92 for ged-emacs-devel@m.gmane-mx.org; Tue, 23 Jul 2024 14:39:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWEmj-0007o3-Gx; Tue, 23 Jul 2024 08:38:29 -0400 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 1sWEmg-0007nu-BA for emacs-devel@gnu.org; Tue, 23 Jul 2024 08:38:26 -0400 Original-Received: from sonic311-13.consmr.mail.bf2.yahoo.com ([74.6.131.123]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sWEme-0000HW-BI for emacs-devel@gnu.org; Tue, 23 Jul 2024 08:38:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1721738298; bh=PLWPu8hH8PsQfu4h2V9MTkTObruLZUr0RghJ7USHjGI=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=n8oUSRf/YLCfUxczAxiysYWEaqEYdd8Fw7TTTuggGgyEwd732Bl7jG/hKF+jJbS1GTaPagZMwkwAF9z7MoWGk2za33s555iK5mBP9vjfx25AfZUZdzuvs7vAVqmSoZ5ZU+OfOYqndNCNFU8Z9PYDpmIlZnjDtMhfK3QadRJ1Ixlc/WFnPlu5dOPYl+mtooNSJ/Nx646tL8ithYZR8tOqTcAa1zF7poNCR3CxmcJKeqNyDkbm++2S7VBd5RxynaUFBwefWkjGOI5fLkTwKYEBocb4y5tBWZtlqIJnEPuP6XbodHEqhrzpk6mLvxB1FHu/qpt1rFH0ajRHq4q5wm7vPQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1721738298; bh=Frg+yiTXlzQOLpHZWLSbLOONrF0KEaztVJga14zQxIF=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=jswDbipyTu2IrLgA6lvcDdXKDNtytOLEyuT6YqE1JzMHwPgyBDw0OkLgBmpRh1KL/7EyhqoLgzRggo2VlJG4aQJi1ygM7V8Pnq0jpMg7fbGFB2484IsjV3sZRqaZG2dqkQq2Xbdba2wGPw+l6pbRzE9LtIGFPkopFs2GqwrtuvEvEa+UgkoFLvfz83EpMjhjpwVPG0Z9kj06cTCBWo0Lb9shQy4OVaJ7si7GN2oAlagUBE5bTkNNysFg5uuzcF77jbZNZ1Xuw0mvVN7UBDZJIMjwCfscPuy61D3HhboKf+vCaeZVA1gNCzrmYBnLeG/sZpdIaOCiYl0dR/iCJitjLQ== X-YMail-OSG: gDj1mD0VM1nK0s6oJnhQIO5RpxH7hIWcD_KKRzstl7sxTV9UDHoKd3UhvN08a8t qGBpzDdDcixIfEwKNNYpL86Ogpc_m_nAOQo4ydJmA7ARehwkVc6m3b3lv2QBNjuw2mPpXr4HuhaC qHmzuPOc0NQu629Mce5jG03SAZx3duQ_d7de3_i0vlBCpvonQtcJA0YPhwdQvtAy94umBgz_NoUC U_vcNbiGL0JV2RNZjaLyUIneYQQmJnkD6neURw8g1Q3Omeq5s2D12SrZw3lWqG0BY5VMAgVJXQt6 .bQ_XEfTTkJ4zFuRLOjUk2.vUJKHaltfR5.QjlGgvZCFHM__pdEJ59ZM9GRIXx25ojZJcjhtN2bL LYvtfXvC6bRBkhUrP_XDpAqYXWkFgYnYYNVJLfyIhnUal5RsslikipZlg0dP.f1q3b..xf28Trle Otk5pkiWhF_.LuvJy3SCu6Z7fJtO0K1LFQbb6nTyM7IIxjX4ZSPudjlLwfm6YqNiMhQUHIPVg6_u oevnjiCnEo3Nl2iibXGL_JWLGmww4iVi7jnJDoNQ0HJ_abmTNU2crUldXbAf60D6J1cGQYZi.oxz q4XYX6wabYMac6i8Zqp9IpdhL.1Xy5Y.gdvA2v3f92XQTTs9tXxMaHEe0e.994HUqM7lfhA5JLXa qqLve16w0OE7jxZzCDAuBy_GW41nRG8LwxlbkxxXOgfdnXpoKRG0Fdb78X76zV57fX7UQuwm6Ni5 cIxHTzGs4aBxXNjhTqnWAc1KxHZp6mQ_my2QQHUfohMqjZzVaXepzwk6qHBr3tZqBzcXdHGGc5BO ytkeb8lPp1vQGR87.0Tvl3xDv3_KOfhNjbjSjlUaeO X-Sonic-MF: X-Sonic-ID: 29e705ac-7229-42b8-8825-2f0757540345 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.bf2.yahoo.com with HTTP; Tue, 23 Jul 2024 12:38:18 +0000 Original-Received: by hermes--production-ir2-57d49df6b5-wdnkk (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID a4aa8927a44e18771f4454d0212471db; Tue, 23 Jul 2024 12:38:15 +0000 (UTC) Content-Disposition: inline X-Mailer: WebService/1.1.22501 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.131.123; envelope-from=spacibba@aol.com; helo=sonic311-13.consmr.mail.bf2.yahoo.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, RCVD_IN_MSPIKE_H2=-0.001, 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:321983 Archived-At: Hi: After a while and looking that the ts modules are getting mature I was planing to develop a `cuda-ts-mode'. However after reading the documentation it is not totally clear to me how to proceed in this specific case because cuda is a sort of "extension" over C++, so I expect that the cuda-ts-mode somehow "inherits" from c++-ts-mode. My initial idea was to replicate how I was expecting that c++-ts-mode should inherit from c-ts-mode, but it looks like this doesn't happen in a clear way. The modes are threated as independent and there is a sort of "mode" variable that is dynamically checked everywhere. So the simple question is: 1. The approach of trying to inherit from c++-ts-mode is correct? (I mean, is c++-ts-mode intended to be used like a "base" to inherit from?) Some advise on this? Thanks in advance, Ergus