]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: fix c-where-wrt-brace-construct to cope with class declarations
authorAlan Mackenzie <acm@muc.de>
Fri, 9 Apr 2021 20:52:49 +0000 (20:52 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 9 Apr 2021 20:52:49 +0000 (20:52 +0000)
commitf493a9bef46dc48f7282e296996186d6d8f77684
treed3c8c0a182a4657eb4642141c6442b7165fe7829
parent59342f689eaa4839b0fc15351ae48b4f1074a6fc
CC Mode: fix c-where-wrt-brace-construct to cope with class declarations

Make the function correctly recognize a brace block preceded by an
introductory line without a parameter list.

* lisp/progmodes/cc-cmds.el (c-where-wrt-brace-contruct): Reintroduce the use
of c-beginning-of-decl-1, which was removed some weeks ago, in place of a
c-syntactic-skip-backward.  Reformulate the code generally.
lisp/progmodes/cc-cmds.el