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: c-ts-mode Date: Thu, 31 Aug 2023 01:52:24 +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="29972"; 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 Thu Aug 31 01:53:31 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 1qbV06-0007f8-VT for ged-emacs-devel@m.gmane-mx.org; Thu, 31 Aug 2023 01:53:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qbUzJ-0000bd-BR; Wed, 30 Aug 2023 19:52:41 -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 1qbUzG-0000bN-Lk for emacs-devel@gnu.org; Wed, 30 Aug 2023 19:52:39 -0400 Original-Received: from sonic302-3.consmr.mail.bf2.yahoo.com ([74.6.135.42]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qbUzD-0004nJ-2w for emacs-devel@gnu.org; Wed, 30 Aug 2023 19:52:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1693439550; bh=UcXblN9tKrroUxzzi/2nYaEda1TjQla0mQSbPQQXXPA=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=ayRRXDu+2GoNvAA7E/gon26S8LezB/yO8b/TmK/QhGfab6nvHWyN5qZmeVpo7NlauxVaelB1/CHYoOco3o3CJXGHUd2kXC0LMCY2mD0FLQhF3Y23SS7rbXzRHOO9rHq9pvVVjR8q45oB8nJw4FCcEW4PATCf4DMvcDB7D6uG0iP5goQL3v8nM+1UG/cV8i7bvYWyOqogP73Y66GuImLawuKVGrTnXOJdWFTWmeSquiwP+cCGBYUpFm7nRVUos2BQ3xBypzLO4NsyuLUe/iP/38pj7Uver2xG6/u21KikPz1ihnbWJ435Jz0eMmsGzpcn8moSBDm7oQD+lEM22KNyRg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1693439550; bh=dMzYZnJiYRjhhx/pPmqV1TE19zAD3FXTaAOaoZ0wkKP=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=Gp29pD7QrgZVjlGpFTVQbElAuDJ2BYCW4Gd6UuyKIsMJb4+IivPhrvilKPu5URVkYxJ053OC5tVNQ/6+Ed/QoBI1pP3fN66LCXd34kQYui2Lh6tqhnjFwnsLC38PzNKvJqbSEdPu2kv/CPMIrsgLM55VTcFOZroUaTZQaWHQJQveml7efa2xtJnZYVxfhVWwGokVILBem0XbX/f/rbZ0TE5JmX0OMQ8hCzvrt1TzJ4r8XH5eTogf6vGV0+voRkfsEx52qABIBgIX4k63B8H9gWjwZZm0ejQaXxqOYEJ11qoUZipzazS5Qe2iqYu2oT1mEmSiZ/3qXK3poLjvQDiEng== X-YMail-OSG: CMBGYSUVM1nlV2SzEi3Mp..9h.Z3WrD8tcWJc4O9cbTAZMP8yZcs25.tSfKthx1 Boux5y10Mrb3FiL5B0j9PCiOKSa2GUHzXBLFhjKxQ2zCNN3nTXIXUxmlsy8tPCtvFBYlf.BC5b.j a4wNzdQQ1G6wsU5APWAUYOf_UIhcORUbVM_ueHwPo8Q1qgB00kcdKX4wbpjzYiWXHPnumE2qv61R 47WL6pPImDSVGAWDz44s4cSz2Abaukc5kQkd3oqsu_0SbEFQ4.s5iTH76RzfMglQ.OhzlmoO8Ixm wzL3LVRmWPPI7ukH_8.5nuNxtk5sI1WhLEn_WKGn7k4tqSDd40.bomoywzEtmLNc7cusRP4u76hS OFeaFezwFH_nnc_acuNSX9HNCGr.k.yFaLoTvBbUllTv7NMXxYDzqEw5vNKAfvYWfFJb8MV1aScp AilqztS2w5G0WvjxsWXO3tmOyRiYRA7rdrcB88e.pxX0xok3Qrjj30tPpi6s_qgw1XD5iQocIEqC 0ls1KwdtCfgUfEgEnKjdrqXF.rFYHcHr8WgWg9UedCwa_oYYUM0THWyynspGucrx10NHLOsy5hO_ sYcEzNlmy2M095188_PlEEpe1tzyO55E1FIa6kIqjvOlsEeEQYGbb0if8uvAhceJOOhYuSN3KZUu cJGKOvWoe0.DmO.Exi_ykQZ_AQd2KUsYjC52WF3Tsqp57s4IIn5jc.IoEYPSh5p45ifFoQWGgueX 58T14JQE90AJRuKZ.rXJBRkTlOdrUrq3cKR4j3AUFrUtsYq2lwdJhndfNUfnmKQiVLhwzXYwrRWu S2m1_gOd77zFYOenMpiJkGcFxYmRfpBvSDbuLaVKwZ X-Sonic-MF: X-Sonic-ID: 400dccc6-8748-4128-8944-1172f3ceb163 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.bf2.yahoo.com with HTTP; Wed, 30 Aug 2023 23:52:30 +0000 Original-Received: by hermes--production-ir2-5cc57b9c45-xgg42 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID dce09481a037609f24ecc953e51e596b; Wed, 30 Aug 2023 23:52:26 +0000 (UTC) Content-Disposition: inline X-Mailer: WebService/1.1.21763 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.135.42; envelope-from=spacibba@aol.com; helo=sonic302-3.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:309567 Archived-At: Hi all: I have been trying to use c++-ts-mode and I found this apparently wrong indentation: int a(in x ) The ) is placed differently compared with the previous c++-mode and inconsistent with the current linux coding standard. The treesit-check-indent shows actually a diff there (same with for loops) I see this entry `((node-is ")") parent 1)` in c-ts-mode--indent-styles so there must e a reason I am not aware of... however: Is it possible to specify small differences in the existent styles like we used to do with c-set-offset? either in the init file or the .dir-locals.el? a way to put something like: `((node-is ")") parent 0`?? If I need to define some completely different indentation style (google for example) whats the intended method to do it without reinventing the wheel? Thanks in advance, Ergus