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#64133: CC Mode 5.35.2 (C/*l); incorrect indentation for an arrays of structs. Date: Sat, 17 Jun 2023 19:27:16 +0300 Message-ID: <83y1kioxzv.fsf@gnu.org> References: <831qiaqfxh.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15824"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64133@debbugs.gnu.org To: Jeff Norden , Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 17 18:28:15 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 1qAYmc-0003wJ-Er for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Jun 2023 18:28:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qAYmU-0001Dw-U7; Sat, 17 Jun 2023 12:28:06 -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 1qAYmQ-0001De-75 for bug-gnu-emacs@gnu.org; Sat, 17 Jun 2023 12:28:03 -0400 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 1qAYmP-0003BV-TT for bug-gnu-emacs@gnu.org; Sat, 17 Jun 2023 12:28:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qAYmP-0001PP-P6 for bug-gnu-emacs@gnu.org; Sat, 17 Jun 2023 12:28:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Jun 2023 16:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64133 X-GNU-PR-Package: emacs Original-Received: via spool by 64133-submit@debbugs.gnu.org id=B64133.16870192485362 (code B ref 64133); Sat, 17 Jun 2023 16:28:01 +0000 Original-Received: (at 64133) by debbugs.gnu.org; 17 Jun 2023 16:27:28 +0000 Original-Received: from localhost ([127.0.0.1]:52511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAYls-0001OQ-GH for submit@debbugs.gnu.org; Sat, 17 Jun 2023 12:27:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qAYlp-0001OA-D3 for 64133@debbugs.gnu.org; Sat, 17 Jun 2023 12:27:26 -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 1qAYlk-00037I-1H; Sat, 17 Jun 2023 12:27:20 -0400 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=ckO69DdgZMHadWNODjPwoFq0eG9PktQAoN0rhG43Tnk=; b=AQiHsH9fLOAT Qi+XxQjYF3W+wfqok9zP/N/v6vRjl9XKtMtAOqrDaLASDSrpSIJMvJTrYhuV4j0FBtkyTwihFkOfh iOtCIF6UpF9kaNH7ORaV/XmrjMTpvCByX8sIbOeSsgMY6xLf/ISHuchH/j4+ymd5+uO6YIIebcXF4 fjpvRIvCUO/w8hyUza+15CK9HCWjXnTnRLQZ/RwMZ6RIQaP+BUXFyWwz9mU52I/utH/SrmTuuafxr mSETBZ9JBQPslZn1wR4p8hswPWFZHAYgyxjUnPXD+6cWKgghDbrSUm9L/qDdktXLOaj/COKCr3Rpn wrwJvPYS4rqQLaaSCcVA9A==; 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 1qAYlh-0004iE-RU; Sat, 17 Jun 2023 12:27:19 -0400 In-Reply-To: (message from Jeff Norden on Sat, 17 Jun 2023 10:43:40 -0500) 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:263556 Archived-At: > From: Jeff Norden > Date: Sat, 17 Jun 2023 10:43:40 -0500 > > > This source code uses the 'linux' indentation style, so you should do > > > > M-x c-set-style RET linux RET > > > > after which the problem goes away, AFAICT. > Eli: Thanks for the quick response. Changing the style works for me, > so this can be closed. > I didn't realize that the style effects parsing, not just the way > space, etc gets inserted by default. Thanks, I will let Alan chime in and decide whether this should be closed.