From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "John C. Ruttenberg" Newsgroups: gmane.emacs.bugs Subject: bug#48837: Interaction between completion-moide and cc-mode new in 27.2 Date: Sun, 27 Jun 2021 09:58:38 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b28af305c5bfc505" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31149"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48837-done@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 27 15:59:11 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 1lxVJW-0007wi-00 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Jun 2021 15:59:10 +0200 Original-Received: from localhost ([::1]:42828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lxVJV-0006Ar-1k for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Jun 2021 09:59:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46610) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxVJO-0006Ai-B3 for bug-gnu-emacs@gnu.org; Sun, 27 Jun 2021 09:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38712) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lxVJN-0005Y8-WA for bug-gnu-emacs@gnu.org; Sun, 27 Jun 2021 09:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lxVJN-0000xb-Vy for bug-gnu-emacs@gnu.org; Sun, 27 Jun 2021 09:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "John C. Ruttenberg" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Jun 2021 13:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48837 X-GNU-PR-Package: emacs Original-Received: via spool by 48837-done@debbugs.gnu.org id=D48837.16248023393683 (code D ref 48837); Sun, 27 Jun 2021 13:59:01 +0000 Original-Received: (at 48837-done) by debbugs.gnu.org; 27 Jun 2021 13:58:59 +0000 Original-Received: from localhost ([127.0.0.1]:50258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxVJL-0000xL-Bt for submit@debbugs.gnu.org; Sun, 27 Jun 2021 09:58:59 -0400 Original-Received: from mail-wr1-f46.google.com ([209.85.221.46]:41530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxVJH-0000x6-Sw for 48837-done@debbugs.gnu.org; Sun, 27 Jun 2021 09:58:57 -0400 Original-Received: by mail-wr1-f46.google.com with SMTP id u8so3928441wrq.8 for <48837-done@debbugs.gnu.org>; Sun, 27 Jun 2021 06:58:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=reservoir-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=e0kmfugZvEaHdcYNiGzk2iXXEGjKiMsqm/72sa6RkIk=; b=bM1K47UJMUNmIq5vANTnPmvd4Pz58lHrVgUkuxrWPWym3VZAFktHxFbmUQpSg2X6+r tglxMR6QRdoSvzCXLyV2HLpFHG9rAsqnBWZ4IENPo5PVA7J0nPh8h8WwWYE5+rof0XGP VUb3mF0BVbKYpnDNx1I69RRqs6Dlh7mr0b+DGkhk+pOjNFzOgBf//L+IEHmX9dLyXdpc JZQs0yaBgFSUUvbLOVly1JATpOqhl9S0Ep/MXNHRRGvFSwxxNWSnV3WnDjMHJBC88+xz l840Xi/gCEOCW3gnJ/Hs4mxtj+jvKA3rejpyixPbcOq6jIFidaiey4Vha6OZ+toNk4jk XUfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=e0kmfugZvEaHdcYNiGzk2iXXEGjKiMsqm/72sa6RkIk=; b=M6anuri05Qxt0pbaV3CoZoW7R7Yx0ugPsh/Ifkfvonl2N3aq3aQu6RBiTdhYV3vFn0 Q+Q2YU7FVCvF73oxqakGA1upZYvZbbBNCMKFfiOG/+nygkqHP6jfS+4sLkezkz/PdJEF I25iuEQSRAi6a6FhQFWRb9JufbDCGaJHjQg3o/01abCPJtz39dtwOIbZcYJE1msdQQox sDTI32OJz8ScZx050WRXQN19/pNW9osTpzC2jm2gR212rDAr6Th8LwRfMiIJab7cCBUp /DTcCr7MEPY0rUcECF3SOpJvHeOikCePfnd/KFkQvT9wxIs0JvKqWcCMiXwe/u+tgqEW e2yw== X-Gm-Message-State: AOAM531pxV4Q90rkE1xvJpkNLfZfBr/tbpdFW9KeoFLeBRV72jXVrozX Kh2y0A+XUm9edWigkbfkJcdlyRVzBrE92hNix0+cDw== X-Google-Smtp-Source: ABdhPJy5UI1y0z/i5iFpEbmmYaQGp6g5YjSjXR2WYR1KUmq2Cm/H7H4d0AInpn9PtzRuzt0i7UFeh5ocmB4rz4ulxTo= X-Received: by 2002:a5d:4e52:: with SMTP id r18mr22287922wrt.372.1624802329786; Sun, 27 Jun 2021 06:58:49 -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" Xref: news.gmane.io gmane.emacs.bugs:209033 Archived-At: --000000000000b28af305c5bfc505 Content-Type: text/plain; charset="UTF-8" My mistake on the "submission". I sent the email to sourceforge. But I am glad the bug has been fixed. On Sun, Jun 27, 2021 at 9:36 AM Alan Mackenzie wrote: > 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). > --000000000000b28af305c5bfc505 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
My mistake on the "submission".=C2=A0 I sent the= email to sourceforge.=C2=A0 But I am glad the bug has been fixed.
On Sun, J= un 27, 2021 at 9:36 AM Alan Mackenzie <acm= @muc.de> wrote:
Hello, John.

On Sat, Jun 26, 2021 at 16:17:41 -0400, John C. Ruttenberg wrote:
> Thanks.=C2=A0 The patch succeeded and the bug seems to be fixed.

Thanks!=C2=A0 I've committed the patch to the emacs-27 branch at savann= ah,
from where it should reach the master branch in a few days, and to stand alone CC Mode and XEmacs.=C2=A0 I'm closing the bug with this post.

> I just submitted another bug but it says it needs moderation.=C2=A0 Di= d you
> see it?

By submitted, do you mean to bug-gnu-emacs@gnu.org?=C2=A0 If so, the "needs
moderation" sounds very strange indeed.=C2=A0 I don't know why thi= s has
happened, and I didn't see your new bug last time I looked at the onlin= e
list (this morning, European time).=C2=A0 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=C2=A0 "{" indents to under the &= quot;z":

> class __attribute__((packed)) y : z {
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^ here

> I think it should indent the same as if "__attribute__((packed))&= quot; were not
> present.

This bug seems already to be fixed in the upcoming Emacs 28.1 and the
head of the standalone CC Mode.=C2=A0 The bug is present in Emacs 27.2.=C2= =A0 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.=C2=A0 If I spell "= __attribute__"
> wrong (like __attribute), it does not reproduce.

> It also does not reproduce if the source file is:

> {
>=C2=A0 =C2=A0class __attribute__((packed)) y : z {

> But if the source file is:

> {
>=C2=A0 =C2=A0class __attribute__((packed)) y : z {

> then it does reproduce.

[ .... ]

--
Alan Mackenzie (Nuremberg, Germany).
--000000000000b28af305c5bfc505--