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.help Subject: Re: c++-ts-mode and namespace indentation Date: Fri, 25 Aug 2023 20:50:19 +0300 Message-ID: <83v8d3m2p0.fsf@gnu.org> References: <8384fc61-39c4-4cd1-9adb-1f4eb6b2a68f@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14989"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 25 19:50:35 2023 Return-path: Envelope-to: geh-help-gnu-emacs@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 1qZax8-0003gB-Fd for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 25 Aug 2023 19:50:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZawU-0004uM-HP; Fri, 25 Aug 2023 13:49:54 -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 1qZawT-0004t9-8O for help-gnu-emacs@gnu.org; Fri, 25 Aug 2023 13:49:53 -0400 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 1qZawT-0000Hh-0m for help-gnu-emacs@gnu.org; Fri, 25 Aug 2023 13:49:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=MgGwReLZMfk4A/ayCHyq07xFFvUkRXDnIgBvlH+zh8Q=; b=Y517XdxLYopeHofgb8C3 UC6eqAUlCSC1J/Zlq/W0p2X6rU0dlzqDls0ie/QJ946CUK+T0LbjUwNrgVa2PreTexA5G7KHJJ4Ac RZuPNi7d4xsrSBqaSnPNtDWOaZn5W5ayWoWTcPzQteOYwJ3Lvtg2pMWoomd6/7ZLZ6L56wWs1nuS3 rRxCGG8FUC/Tm9bDaXyqoIHuvTYxQXQE7TGjk3VPNGC03bmpLdpoFmyEq/VVhqffVV8jNl9ShB8nV yyQWxj74JGuTbdRCLXp09Yu98p0wHD99WLN7w2ZW0+bQHfMKiDvbmB1cxWDUH8+kQV9Ubr5atsJBM edL/Xp7t4r3Uxg==; In-Reply-To: <8384fc61-39c4-4cd1-9adb-1f4eb6b2a68f@protonmail.com> (message from Louis-Guillaume Gagnon on Thu, 24 Aug 2023 09:04:55 +0000) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144965 Archived-At: > Date: Thu, 24 Aug 2023 09:04:55 +0000 > From: Louis-Guillaume Gagnon > > I've recently switched to the new c++-ts-mode (a game changer for source > code featuring deeply nested templates!). I'm quite pleased with it, but > I can't figure out how to make it such that a namespace block doesn't > increase the indentation level.  I previously achieved this with > (c-set-offset 'innamespace 0); Can anyone spell out how to achieve this > under treesitter? The c++-ts-mode doesn't support c-set-offset, which is specific to CC Mode. Try using c-ts-mode-indent-offset instead. If that somehow doesn't work, I suggest to submit a detailed bug report describing the feature you'd like to see.