GNU bug report logs - #13100
24.2; c-guess-basic-syntax of cc-engine returned wrong syntactic context if init list of C++ class constructor is too long

Previous Next

Packages: cc-mode, emacs;

Reported by: Yangyingchao <yangyingchao <at> gmail.com>

Date: Thu, 6 Dec 2012 06:08:02 UTC

Severity: normal

Found in version 24.2

Fixed in version 24.4

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Kangas <stefan <at> marxist.se>
To: Yangyingchao <yangyingchao <at> gmail.com>
Cc: Alan Mackenzie <acm <at> muc.de>, 13100 <at> debbugs.gnu.org
Subject: bug#13100: 24.2; c-guess-basic-syntax of cc-engine returned wrong syntactic context if init list of C++ class constructor is too long
Date: Mon, 30 Sep 2019 18:45:54 +0200
Yangyingchao <yangyingchao <at> gmail.com> writes:

> I'm a c++ programer, and sometimes I need to initialize lots of member fields during in a constructor. Sometimes when the init list is too long, cc mode will treat some member-init-cont as topmost-init-cont, and then gives a wrong indention.
>
> After some debuging, I found this change:
>
> http://lists.gnu.org/archive/html/emacs-diffs/2012-03/msg00152.html.
>
> In this change, In CASE 5B, search limit is restricted to 500. This, sometimes, is not enough.
>
> Best Regards
> Tubo

That was almost 7 years ago.  Is this still an issue?

Best regards,
Stefan Kangas




This bug report was last modified 5 years and 295 days ago.

Previous Next


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