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.bugs Subject: bug#61502: 29.0.60; c-ts-mode auto-indent not working Date: Tue, 14 Feb 2023 15:16:47 +0200 Message-ID: <83a61ge69s.fsf@gnu.org> References: <87v8k4g8xu.fsf@codeisgreat.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10208"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61502@debbugs.gnu.org To: Pankaj Jangid , Yuan Fu , Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 14 14:18:18 2023 Return-path: Envelope-to: geb-bug-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 1pRvCL-0002OE-B6 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Feb 2023 14:18:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRvC8-00072v-FF; Tue, 14 Feb 2023 08:18:04 -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 1pRvC7-00072W-9M for bug-gnu-emacs@gnu.org; Tue, 14 Feb 2023 08:18:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pRvC6-0004cf-TW for bug-gnu-emacs@gnu.org; Tue, 14 Feb 2023 08:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pRvC6-0000PQ-IA for bug-gnu-emacs@gnu.org; Tue, 14 Feb 2023 08:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Feb 2023 13:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61502 X-GNU-PR-Package: emacs Original-Received: via spool by 61502-submit@debbugs.gnu.org id=B61502.16763806411510 (code B ref 61502); Tue, 14 Feb 2023 13:18:02 +0000 Original-Received: (at 61502) by debbugs.gnu.org; 14 Feb 2023 13:17:21 +0000 Original-Received: from localhost ([127.0.0.1]:52875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRvBR-0000OI-1Y for submit@debbugs.gnu.org; Tue, 14 Feb 2023 08:17:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRvBL-0000Nw-UL for 61502@debbugs.gnu.org; Tue, 14 Feb 2023 08:17:19 -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 1pRvBG-0004JZ-8M; Tue, 14 Feb 2023 08:17:10 -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=NIRTQWilSKphj+GiS9hvkNZ9ji4/kcBza+gSy3q8nY4=; b=c8UzrTo0z02x 2sPzDkEJ/8QUEmvVMLfInM17v4WK5HeObURIcHyX3ATJ0SOOEzvCtr9rmmNwPMiEUrtLJ+YYGOZOS 1TFFmDJv0o68dW8w0mEl+d18+RiZIneiWTK4KrfuyaHToyRixBh/BrQww7TXjVCM2CKY8SWyBCBF+ q9mKcq6OZ1LMfhmsyPmH8nQt7YCM7h5aHg0UfXPIUHX89P/SGAqN2LocoGGXSILm8mQp5prTnVPBQ +sOt4dg/W2leDCzKai+584g/3Nx49SbiHvUUXs6SSsxIKLAywhonSAmsbeBpM1BHkszY0OKQf4/5m GnCwZBYSIjvRW7jsZKO58g==; 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 1pRvBF-0002ir-F0; Tue, 14 Feb 2023 08:17:09 -0500 In-Reply-To: <87v8k4g8xu.fsf@codeisgreat.org> (message from Pankaj Jangid on Tue, 14 Feb 2023 10:06:13 +0530) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255575 Archived-At: > From: Pankaj Jangid > Date: Tue, 14 Feb 2023 10:06:13 +0530 > > > The auto-indent is not working when using c-ts-mode. > > Steps: > > 1. create a new file test.c > > 2. After typing following snippet, the indentation should work > automatically on RET. But even the TAB is not indenting the next line > (after the RET), > > --8<---------------cut here---------------start------------->8--- > int main() > { > --8<---------------cut here---------------end--------------->8--- Keep typing whatever code you wan "int main" to include, and it will auto-indent soon enough. So I'm not sure your expectations are necessarily true; they could be just something you are used to in CC mode. But I'll let Yuan and Theo chime in and tell whether a single RET here is supposed to auto-indent. Does c-ts-mode really always reindents on RET?