unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "John C. Ruttenberg" <ruttenberg@reservoir.com>
To: Alan Mackenzie <acm@muc.de>
Cc: 48837-done@debbugs.gnu.org
Subject: bug#48837: Interaction between completion-moide and cc-mode new in 27.2
Date: Sun, 27 Jun 2021 09:58:38 -0400	[thread overview]
Message-ID: <CAPx0gThQckOCz6qoMjuDv_-B7dS1w3Y-ecdOL3=zC+LYqivu1Q@mail.gmail.com> (raw)
In-Reply-To: <YNh+w8w3VZ76KRBl@ACM>

[-- Attachment #1: Type: text/plain, Size: 2003 bytes --]

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 <acm@muc.de> 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).
>

[-- Attachment #2: Type: text/html, Size: 2689 bytes --]

      reply	other threads:[~2021-06-27 13:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-04 20:13 bug#48837: Interaction between completion-moide and cc-mode new in 27.2 John C. Ruttenberg
2021-06-20 18:43 ` Alan Mackenzie
     [not found]   ` <CAPx0gTiJJJKsyjuo2He_B81CMrnBjXg8+WwTXw1TndjacjNGkg@mail.gmail.com>
     [not found]     ` <YNeIjEIVlKFHcHHD@ACM>
     [not found]       ` <CAPx0gTh-567hARAfNhUDyuB7=tWWGSR1+hDxWjEU31JZ_-_CDA@mail.gmail.com>
2021-06-27 13:36         ` Alan Mackenzie
2021-06-27 13:58           ` John C. Ruttenberg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPx0gThQckOCz6qoMjuDv_-B7dS1w3Y-ecdOL3=zC+LYqivu1Q@mail.gmail.com' \
    --to=ruttenberg@reservoir.com \
    --cc=48837-done@debbugs.gnu.org \
    --cc=acm@muc.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).