From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#64133: CC Mode 5.35.2 (C/*l); incorrect indentation for an arrays of structs. Date: Mon, 19 Jun 2023 11:46:32 +0000 Message-ID: References: <831qiaqfxh.fsf@gnu.org> <83y1kioxzv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16366"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, Eli Zaretskii , 64133@debbugs.gnu.org To: Jeff Norden Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 19 13:47:27 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 1qBDLy-00048V-Tq for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Jun 2023 13:47:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBDLg-0002Yp-F1; Mon, 19 Jun 2023 07:47:08 -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 1qBDLc-0002XT-4y for bug-gnu-emacs@gnu.org; Mon, 19 Jun 2023 07:47:04 -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 1qBDLa-00031A-Qw for bug-gnu-emacs@gnu.org; Mon, 19 Jun 2023 07:47:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qBDLa-0004cY-8S for bug-gnu-emacs@gnu.org; Mon, 19 Jun 2023 07:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Jun 2023 11:47:02 +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.168717520117733 (code B ref 64133); Mon, 19 Jun 2023 11:47:02 +0000 Original-Received: (at 64133) by debbugs.gnu.org; 19 Jun 2023 11:46:41 +0000 Original-Received: from localhost ([127.0.0.1]:55654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBDLF-0004bx-3o for submit@debbugs.gnu.org; Mon, 19 Jun 2023 07:46:41 -0400 Original-Received: from mx3.muc.de ([193.149.48.5]:43285) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBDLD-0004bf-6a for 64133@debbugs.gnu.org; Mon, 19 Jun 2023 07:46:39 -0400 Original-Received: (qmail 89611 invoked by uid 3782); 19 Jun 2023 13:46:32 +0200 Original-Received: from acm.muc.de (p4fe15cec.dip0.t-ipconnect.de [79.225.92.236]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 19 Jun 2023 13:46:32 +0200 Original-Received: (qmail 6266 invoked by uid 1000); 19 Jun 2023 11:46:32 -0000 Content-Disposition: inline In-Reply-To: X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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:263676 Archived-At: Hello, Jeff. On Sun, Jun 18, 2023 at 12:23:58 -0500, Jeff Norden wrote: > The only reason the minibuffer-read affects things is timing. This > seems obvious now, but somehow it didn't occur to me until after I > sent the previous message. If I do > ..wait a few seconds.. > then the syntax does *not* change to brace-list. I tried changing > c-progress-interval, but that didn't seem to affect things. Maybe > there is another timer, or maybe a race condition involved somehow. No, I think it really is the cache bug I mentioned in my last post. Caches are wonderful things when they work properly, but the utter devil to debug when they don't. I've currently got a CC Mode version with this cache corrected, such that it parses your test file correctly, but I want to make sure the correction is correct before I send you a patch and release the fix. I'll be back again soon. > Hope this helps, > -Jeff -- Alan Mackenzie (Nuremberg, Germany).