GNU bug report logs - #19867
c++-mode indentation issues with C++1x initializer lists

Previous Next

Packages: emacs, cc-mode;

Reported by: turner25 <at> gmail.com

Date: Sat, 14 Feb 2015 18:17:01 UTC

Severity: minor

Found in version 24.4.1

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

Bug is archived. No further changes may be made.

Full log


Message #50 received at 19867 <at> debbugs.gnu.org (full text, mbox):

From: Mattias EngdegÄrd <mattias.engdegard <at> gmail.com>
To: Alan Mackenzie <acm <at> muc.de>
Cc: Simon <turner25 <at> gmail.com>, 19867 <at> debbugs.gnu.org,
 Stefan Kangas <stefankangas <at> gmail.com>
Subject: bug#19867: c++-mode indentation issues with C++1x initializer lists 
Date: Thu, 17 Apr 2025 15:42:59 +0200
Thank you for fixing this. A minor oversight in the committed patch, in cc-align.el:

 351        (skip-syntax-backward " \t([{" (c-point 'boi))

This call should probably use `skip-char-backward`, because `\t`, `[`, and `{` aren't syntax chars.
It currently works by accident because of the ` ` and `(` syntax classes.





This bug report was last modified 2 days ago.

Previous Next


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