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: Wed, 15 Feb 2023 14:24:51 +0200 Message-ID: <838rgzce0c.fsf@gnu.org> References: <87v8k4g8xu.fsf@codeisgreat.org> <83a61ge69s.fsf@gnu.org> <87edqs11db.fsf@thornhill.no> <83a61gc8xx.fsf@gnu.org> <875yc40zhu.fsf@thornhill.no> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28252"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61502@debbugs.gnu.org, casouri@gmail.com, pankaj@codeisgreat.org To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 15 13:26:07 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 1pSGrP-000762-5n for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Feb 2023 13:26:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSGrM-0001um-PE; Wed, 15 Feb 2023 07:26: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 1pSGrK-0001uJ-S5 for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2023 07:26:02 -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 1pSGrK-0004eb-J9 for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2023 07:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pSGrK-0002UK-Dr for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2023 07:26: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: Wed, 15 Feb 2023 12:26: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.16764639389526 (code B ref 61502); Wed, 15 Feb 2023 12:26:02 +0000 Original-Received: (at 61502) by debbugs.gnu.org; 15 Feb 2023 12:25:38 +0000 Original-Received: from localhost ([127.0.0.1]:58117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSGqw-0002Ta-4Z for submit@debbugs.gnu.org; Wed, 15 Feb 2023 07:25:38 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSGqt-0002TH-Fe for 61502@debbugs.gnu.org; Wed, 15 Feb 2023 07:25:36 -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 1pSGqo-0004Xa-1J; Wed, 15 Feb 2023 07:25:30 -0500 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=qkzPFZkrZDXUu8weTG0EHS2+EMPeaSQ51YcWWWW/7Ho=; b=oJ30OLu/i0Bk/6Y/6+BY 6Ug+mLo03wdjVWAJeX2WJ2t0cc9hKwQtLTQPY1rEnb2FNcq7Zkm5cTGbDGgcNf67RN5gFfgIlMBaJ I+vubAz8dBwUvxNbIN0Vovzbl8tP4p+Fv1DB8BeieT10+Wu8ceNltt8HvUL0Q0lqKkKpwAyp/gq6G 6dJEHW3+fLvWjGeiTK9EVZIv3HHVG+UVaqrHWC9321+71/5mDGTIoTdf4Us1eLA1URwNwKbBM1arL NpRpaYDLlLVYMaqLkAfZs2PBTc9a3MBvvlnORt56OdnC1bb3Zhh1Ac64LYbopWd7HO3DpLQscro92 Yv5zJrYT9kPiqA==; 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 1pSGqY-00060O-S7; Wed, 15 Feb 2023 07:25:29 -0500 In-Reply-To: <875yc40zhu.fsf@thornhill.no> (message from Theodor Thornhill on Tue, 14 Feb 2023 21:21:33 +0100) 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:255685 Archived-At: > From: Theodor Thornhill > Cc: pankaj@codeisgreat.org, casouri@gmail.com, 61502@debbugs.gnu.org > Date: Tue, 14 Feb 2023 21:21:33 +0100 > > int > main > { > for (;;)| > ``` > > Now type RET > > ``` > int > main > { > for (;;) > | > ``` > > Now type { > > ``` > int > main > { > for (;;) > {| > ``` > > Now type RET > > ``` > int > main > { > for (;;) > { > | > ``` > > Which is what I consider a little confusing. We get different > indentation with and without the closed scope. Any idea why it doesn't choose the 'for' node? That's what a naïve user would expect, I think.