bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#24022: 24.5; C indentation failure


From: Stefan Kangas
Subject: bug#24022: 24.5; C indentation failure
Date: Sun, 29 Sep 2019 07:02:35 +0200

Alan Mackenzie <acm@muc.de> writes:

> Hello, robgssp.
>
> In article <mailman.1656.1468874050.26859.bug-gnu-emacs@gnu.org> you wrote:
>
>> c-mode fails to indent correctly when a #if is followed by a
>> comment. Example:
>
>> int main() {
>> #if defined(a) // comment
>>   if (b) {
>>   body();
>> }
>> #endif
>>   }
>
>> Clearly this isn't the correct indentation. A clean run under -Q behaves
>> the same way.
>
> Yes.
>
> Thanks for taking the trouble to report this problem, and thanks even
> more for cutting the source down to a small, easy to handle test case.
>
> There have been extensive changes to CC Mode since the release of Emacs
> 24.5, and the problem isn't apparent in more recent versions.  Bisecting
> the changes in mercurial suggest that this bug was "solved" by a commit on
> 2016-05-29.
>
> I've tried to adapt this commit so that it will apply to the Emacs 24.5
> sources, but the changes are just too many for this to be practicable.
>
> Would it be OK for me to send you a tarball of the up-to-date CC Mode
> sources (~1.34 Mb) so that you could build these on Emacs 24.5 and check
> that the error really has been fixed (and not just in the cut down test
> case you've sent me)?

Hi Alan,

It looks like this has been fixed, but you were awaiting some further
verification from the reporter.  Did you ever get such verification?

If not, perhaps we should just close this if you can't reproduce it.

I can't reproduce it on current master using the example given above.

Best regards,
Stefan Kangas





reply via email to

[Prev in Thread] Current Thread [Next in Thread]