From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#27130: c-mode indentation mistreats structs in function arguments Date: Mon, 30 Nov 2020 12:11:56 +0100 Message-ID: <87zh2zaykj.fsf@gnus.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29143"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 27130@debbugs.gnu.org, Alan Mackenzie To: Sam Pagenkopf Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 30 12:13:13 2020 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 1kjh7I-0007SX-RM for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Nov 2020 12:13:12 +0100 Original-Received: from localhost ([::1]:42340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjh7H-0006WY-IL for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Nov 2020 06:13:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjh78-0006WC-F0 for bug-gnu-emacs@gnu.org; Mon, 30 Nov 2020 06:13:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42186) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kjh78-0002ol-7f; Mon, 30 Nov 2020 06:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kjh78-0000cX-3A; Mon, 30 Nov 2020 06:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 30 Nov 2020 11:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27130 X-GNU-PR-Package: emacs,cc-mode Original-Received: via spool by 27130-submit@debbugs.gnu.org id=B27130.16067347282269 (code B ref 27130); Mon, 30 Nov 2020 11:13:02 +0000 Original-Received: (at 27130) by debbugs.gnu.org; 30 Nov 2020 11:12:08 +0000 Original-Received: from localhost ([127.0.0.1]:53718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjh6G-0000aX-1S for submit@debbugs.gnu.org; Mon, 30 Nov 2020 06:12:08 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:34826) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjh6E-0000Zu-13 for 27130@debbugs.gnu.org; Mon, 30 Nov 2020 06:12:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=7FORfGmMsb9r5zqW2JGTXEs37eLt7VoMFcHR5fErNZg=; b=SJuNRhQG3385cvvcja+I1vzzU1 cJuUJlsBKZfvFpZVLqlEeJOciIee/ZqeUkupEwwPtgncXHUnjV2s/DdX9W4Q6BpJeWHx967ktG+13 G88erMlnqi6WAFo9mvRQd5M/Z5k6rGywYraRblFHl9vsDBl8cZjAlNbsbBQ8pLnVje7o=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kjh65-00086j-M6; Mon, 30 Nov 2020 12:12:00 +0100 X-Now-Playing: Yukihiro Takahashi's _Saravah!_: "C'est Si Bon" In-Reply-To: (Sam Pagenkopf's message of "Mon, 29 May 2017 08:33:35 -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" Xref: news.gmane.io gmane.emacs.bugs:194607 Archived-At: Sam Pagenkopf writes: > In emacs 25.2.1. > > Relevant code: > > draw_add(&battle.draw, (Drawn){ > .kind = DRAW_RECT, > .size = {40,24}, > .pos.border = { > .align = {ALIGN_LEFT, ALIGN_TOP}, > .dist = 3 > } > } > ); > > My guess is that it's reading (Drawn){...} as a statement, and the , as > the (,) C operator. I'm not sure how this should be indented (as I didn't even know that that was valid C). But that does look wrong, in any case. (I've confirmed that it indents it the same way in Emacs 28.) Alan? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no