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#48837: Interaction between completion-moide and cc-mode new in 27.2 Date: Sun, 27 Jun 2021 13:36:03 +0000 Message-ID: References: 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="13003"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48837-done@debbugs.gnu.org To: "John C. Ruttenberg" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 27 15:37:16 2021 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 1lxUyJ-0003B7-Cl for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Jun 2021 15:37:15 +0200 Original-Received: from localhost ([::1]:35422 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lxUyH-00008x-GW for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Jun 2021 09:37:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxUy6-00008a-Lw for bug-gnu-emacs@gnu.org; Sun, 27 Jun 2021 09:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37556) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lxUy6-0003HU-Ee for bug-gnu-emacs@gnu.org; Sun, 27 Jun 2021 09:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lxUy6-00009t-BE for bug-gnu-emacs@gnu.org; Sun, 27 Jun 2021 09:37:02 -0400 Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Jun 2021 13:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 48837 X-GNU-PR-Package: emacs Mail-Followup-To: 48837@debbugs.gnu.org, acm@muc.de, ruttenberg@reservoir.com Original-Received: via spool by 48837-done@debbugs.gnu.org id=D48837.1624800977549 (code D ref 48837); Sun, 27 Jun 2021 13:37:02 +0000 Original-Received: (at 48837-done) by debbugs.gnu.org; 27 Jun 2021 13:36:17 +0000 Original-Received: from localhost ([127.0.0.1]:49102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxUxN-00008n-10 for submit@debbugs.gnu.org; Sun, 27 Jun 2021 09:36:17 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:21752 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1lxUxG-00008V-R1 for 48837-done@debbugs.gnu.org; Sun, 27 Jun 2021 09:36:15 -0400 Original-Received: (qmail 17567 invoked by uid 3782); 27 Jun 2021 13:36:04 -0000 Original-Received: from acm.muc.de (p4fe15d07.dip0.t-ipconnect.de [79.225.93.7]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 27 Jun 2021 15:36:03 +0200 Original-Received: (qmail 22196 invoked by uid 1000); 27 Jun 2021 13:36:03 -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" Xref: news.gmane.io gmane.emacs.bugs:209032 Archived-At: Hello, John. On Sat, Jun 26, 2021 at 16:17:41 -0400, John C. Ruttenberg wrote: > Thanks. The patch succeeded and the bug seems to be fixed. Thanks! I've committed the patch to the emacs-27 branch at savannah, from where it should reach the master branch in a few days, and to stand alone CC Mode and XEmacs. I'm closing the bug with this post. > I just submitted another bug but it says it needs moderation. Did you > see it? By submitted, do you mean to bug-gnu-emacs@gnu.org? If so, the "needs moderation" sounds very strange indeed. I don't know why this has happened, and I didn't see your new bug last time I looked at the online list (this morning, European time). Can I suggest you try submitting it again? > Here is the text of the email, if not: > Here is my C++ file: > class __attribute__((packed)) y : z { > Typing a new line after the "{" indents to under the "z": > class __attribute__((packed)) y : z { > ^ here > I think it should indent the same as if "__attribute__((packed))" were not > present. This bug seems already to be fixed in the upcoming Emacs 28.1 and the head of the standalone CC Mode. The bug is present in Emacs 27.2. With a bit of bisection, I should be able to find the patch which fixed it. With any luck, I'll be able to send you a patch for Emacs 27.2. > This appears to be fragile in surprising ways. If I spell "__attribute__" > wrong (like __attribute), it does not reproduce. > It also does not reproduce if the source file is: > { > class __attribute__((packed)) y : z { > But if the source file is: > { > class __attribute__((packed)) y : z { > then it does reproduce. [ .... ] -- Alan Mackenzie (Nuremberg, Germany).