From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Nikolai Weibull Newsgroups: gmane.emacs.devel Subject: Re: C99 compound literals in c-mode Date: Wed, 16 Aug 2017 19:52:16 +0200 Message-ID: References: <20170816172604.GD3417@ACM> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1502905988 26654 195.159.176.226 (16 Aug 2017 17:53:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 16 Aug 2017 17:53:08 +0000 (UTC) Cc: Nikolai Weibull , Stefan Monnier , Emacs Developers To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 16 19:53:03 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1di2V3-0006f2-SK for ged-emacs-devel@m.gmane.org; Wed, 16 Aug 2017 19:53:02 +0200 Original-Received: from localhost ([::1]:36032 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1di2VA-0006D2-EN for ged-emacs-devel@m.gmane.org; Wed, 16 Aug 2017 13:53:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1di2US-0006CN-V1 for emacs-devel@gnu.org; Wed, 16 Aug 2017 13:52:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1di2UP-0000QI-2W for emacs-devel@gnu.org; Wed, 16 Aug 2017 13:52:25 -0400 Original-Received: from disu.se ([71.19.156.204]:35354) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1di2UO-0000Pd-Oy for emacs-devel@gnu.org; Wed, 16 Aug 2017 13:52:20 -0400 Original-Received: from mail-wr0-f180.google.com (mail-wr0-f180.google.com [209.85.128.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by disu.se (Postfix) with ESMTPSA id 76157C029 for ; Wed, 16 Aug 2017 19:52:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=disu.se; s=mail; t=1502905937; bh=1Xqoa1Pew/k7hL/H7de42LEW5H43hnFUjOIXdGB3y3s=; l=849; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=NZQmUD6oHmmyzqqh/DunKYH+vz1O2BnocaJDRKF1ZEkd0/MWNyGaaeCaYqwtSEwnX zX7X7T9ERpobe+en9BhmUlN2WDldQg/tK46RX3bKFvqP6BXYzSl/Q8iD3vhyc5XhIu EQFEC4Ctbz/OreTzHcdh0ad6RSKY5bzkAd8r55IA= Original-Received: by mail-wr0-f180.google.com with SMTP id z91so13064422wrc.4 for ; Wed, 16 Aug 2017 10:52:18 -0700 (PDT) X-Gm-Message-State: AHYfb5joJpb81NzXYo84HcgiqnJzAFwstTtfm//AHdV0cIQRPn9zC8dq nP+I7kVsndj748EMeHHY/ELCSz0smQ== X-Received: by 10.80.165.114 with SMTP id z47mr2722455edb.60.1502905936817; Wed, 16 Aug 2017 10:52:16 -0700 (PDT) Original-Received: by 10.80.151.16 with HTTP; Wed, 16 Aug 2017 10:52:16 -0700 (PDT) In-Reply-To: <20170816172604.GD3417@ACM> X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 71.19.156.204 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217590 Archived-At: On Wed, Aug 16, 2017 at 7:26 PM, Alan Mackenzie wrote: > Hello, Nikolai. > > On Tue, Aug 15, 2017 at 11:57:25 +0200, Nikolai Weibull wrote: >> On Tue, Aug 15, 2017 at 11:03 AM, Stefan Monnier >> wrote: >> >> C-mode doesn=E2=80=99t seem to understand C99=E2=80=99s compound lite= rals, resulting in >> >> rather broken indentation. Is this correct and, if so, how difficult= would >> >> it be to add support for it? >> > >> > Could you show some example problematic code? > >> Yes: > >> struct a { >> int b; >> }; > >> int >> main(void) >> { >> return (struct a){ >> 0 >> }.b; >> } > > I'll take a look at it. It shouldn't be too difficult. Thank you, I really appreciate it. (You may contact me on or off list if you=E2=80=99d like more examples or other input.) Nikolai