From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jeff Norden 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 09:30:48 -0500 Message-ID: References: <831qiaqfxh.fsf@gnu.org> <83y1kioxzv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38726"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 64133@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 19 16:35:05 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 1qBFyC-0009o1-Uy for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Jun 2023 16:35:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBFvy-0006jf-81; Mon, 19 Jun 2023 10:32:46 -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 1qBFvT-0006M4-IN for bug-gnu-emacs@gnu.org; Mon, 19 Jun 2023 10:32:15 -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 1qBFvG-0003hV-SL for bug-gnu-emacs@gnu.org; Mon, 19 Jun 2023 10:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qBFvG-0000xd-AR for bug-gnu-emacs@gnu.org; Mon, 19 Jun 2023 10:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jeff Norden Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Jun 2023 14:32: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.16871850843638 (code B ref 64133); Mon, 19 Jun 2023 14:32:02 +0000 Original-Received: (at 64133) by debbugs.gnu.org; 19 Jun 2023 14:31:24 +0000 Original-Received: from localhost ([127.0.0.1]:56945 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBFud-0000wc-Kw for submit@debbugs.gnu.org; Mon, 19 Jun 2023 10:31:23 -0400 Original-Received: from mail-pl1-f178.google.com ([209.85.214.178]:58570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBFub-0000wI-08 for 64133@debbugs.gnu.org; Mon, 19 Jun 2023 10:31:21 -0400 Original-Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1b55bc0c907so12559025ad.0 for <64133@debbugs.gnu.org>; Mon, 19 Jun 2023 07:31:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687185075; x=1689777075; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=4LHasMG5M351+JeYB5/eEhxqcMhL4XWtOOxoQXotgx4=; b=PzR2SdgzP8qL0neIanwDK7N5UOZ8Nw39A8uNvKyEYDSUcQJtsjZ2etu/gZmTbiJOJ4 mkPEpHij6M+Q0wkmWXrO43KEKVUnG1YsuWNu90cxFN3WY9pfxuMO/+wy+q9CPgqMkVbk oqvdZDLaqikwNRtUyVFB1y9rOepeSAeGM003AEeitHSeGN6ezOxBfravuAVP0F3LVgIQ AOsWuoO98l9AkhUMR6YiZ+qlq7mZ22N+p1I1Qc/9VKFmk90+KK7/E6r1jfvGOT/VaAcQ GVofr6dvNss49PAfh/ryK/aBnrpNao4PRcxWO+qYiLBUoIIMABX/pH0gosOzP5tOrBUa kW2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687185075; x=1689777075; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4LHasMG5M351+JeYB5/eEhxqcMhL4XWtOOxoQXotgx4=; b=WFpyZ2XAuV5bGs2mutC5YmGgXCukdIYzfoFbaOi3zWZob6QinPvr1A8YQIxq4hQiKy YOyoev2qJFv/XO25vlb51GoMP+5PS14NMVa0YC4/SbfkMXHpntlYHu95OT0j8j2prCLY bxn3QlLML92sQOf27169z5/N4ZO3QwzPr4eaZF56OZcPWn9DDxjZpbACu0H+78NiwuGc /CobCBLhjiGLKTjRVhEwyoIEL/51kLHSA4tx6eLDwwCMzHMdBSG8FZJJUZJ5DV03q6yB MG+W+QobVKwHxdpouPs1kHOlXTszHDOoZho52hi2BVrYCVgZAMwGYK5Hx+jzblrVB2Ym 4uPA== X-Gm-Message-State: AC+VfDxkGgR5Ol1vHrtWjJyPLBz1IzCyhrYFa4onQJRJ6fehnYEGPTCr /R1z5/Dlta/Y6AAP/pyPlFS6EOVj8E9YWF3Y2cNDHhXbPZXbNA== X-Google-Smtp-Source: ACHHUZ7SX5ssq6eoLwXRh2z14qFLoPt3TBd1K04tmHY8KpT/fagXAIE7s2oMo+KGMiFdIWBL/MezypBy0N9Txe4EkJo= X-Received: by 2002:a17:903:1208:b0:1a5:150f:8558 with SMTP id l8-20020a170903120800b001a5150f8558mr11014448plh.17.1687185074758; Mon, 19 Jun 2023 07:31:14 -0700 (PDT) In-Reply-To: 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:263686 Archived-At: On Mon, Jun 19, 2023 at 6:46=E2=80=AFAM Alan Mackenzie wrote: > No, I think it really is the cache bug I mentioned in my last post. I agree. In fact, a "brute force" fix is to use advice-add to reset c-laomib-cache to nil before each call to c-indent-line. What puzzled me is that certain buffer changes also fix the issue, and that timing makes a difference in when and how that happens. I'm now guessing that the bug is triggered by calls from the fontification system. If I start "emacs -Q", and do `M-x global-font-lock-mode' to turn all fontifcation off, then "C-c C-s" shows correct syntax when I open the example file. Thanks again, -Jeff