GNU bug report logs - #28050
CC Mode 5.33 (C/*l); indentation of array and enum in GNU style isn't right

Previous Next

Package: cc-mode;

Reported by: Mohammed Sadiq <sadiq <at> sadiqpk.org>

Date: Fri, 11 Aug 2017 17:23:02 UTC

Severity: normal

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Alan Mackenzie <acm <at> muc.de>
To: Mohammed Sadiq <sadiq <at> sadiqpk.org>
Cc: 28050 <at> debbugs.gnu.org
Subject: bug#28050: CC Mode 5.33 (C/*l); indentation of array and enum in GNU style isn't right
Date: Thu, 27 Sep 2018 20:19:09 +0000
[Message part 1 (text/plain, inline)]
Hello, Mohammed

On Thu, Sep 27, 2018 at 16:39:43 +0530, Mohammed Sadiq wrote:
> > On Sun, Sep 23, 2018 at 05:47:29 +0530, Mohammed Sadiq wrote:
> >> On 2018-09-23 01:00, Alan Mackenzie wrote:

> > diff -r e38b65ad9145 cc-align.el
> > --- a/cc-align.el	Mon Aug 27 20:23:23 2018 +0000
> > +++ b/cc-align.el	Tue Sep 25 19:01:56 2018 +0000

> [ ... ]

> Sorry the patch isn't applying the emacs master branch.

I'm sorry, too.  Maybe including the patch inline wasn't such a
brilliant idea.

> And I'm now busy with some work to manually merge each change.
> It would be nice if you can rebase the patch over emacs master.
> Or is the patch against cc-mode from sourceforge?

Could you try instead the attached patch file?  Although the line
numbers don't quite correspond with the Emacs master, it applies cleanly
to Emacs master for me.

Yes, I made the patch basically for the standalone CC Mode, but amended
it to apply to the CC Mode in Emacs.

> If you are busy too, please wait. I shall try again as I have
> time. I wish this to be fixed in 27.x.

This WILL be fixed for Emacs 27.  :-)

> Thanks

Thank you for all the trouble you are taking.

-- 
Alan Mackenzie (Nuremberg, Germany).

[diff.20180927.diff (text/plain, attachment)]

This bug report was last modified 6 years and 72 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.