all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: "John C. Ruttenberg" <ruttenberg@reservoir.com>
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 13:36:03 +0000	[thread overview]
Message-ID: <YNh+w8w3VZ76KRBl@ACM> (raw)
In-Reply-To: <CAPx0gTh-567hARAfNhUDyuB7=tWWGSR1+hDxWjEU31JZ_-_CDA@mail.gmail.com>

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).





  parent reply	other threads:[~2021-06-27 13:36 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 [this message]
2021-06-27 13:58           ` John C. Ruttenberg

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

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

  git send-email \
    --in-reply-to=YNh+w8w3VZ76KRBl@ACM \
    --to=acm@muc.de \
    --cc=48837-done@debbugs.gnu.org \
    --cc=ruttenberg@reservoir.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.