]> git.eshelyaron.com Git - emacs.git/commit
c-where-wrt-brace-construct: deal with point following a struct's semicolon.
authorAlan Mackenzie <acm@muc.de>
Mon, 27 Aug 2018 19:49:25 +0000 (19:49 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 27 Aug 2018 19:49:25 +0000 (19:49 +0000)
commit3266e69dabfb36b2c9886a5e31b87e322d01ca7f
tree3edebccd18c5df9bb0d76ce73a0c370c67f6ca67
parent674f276c0ab3e9759d33f37971ef87f84a3b0683
c-where-wrt-brace-construct: deal with point following a struct's semicolon.

More precisely, when point is right after the terminating semicolon of a
construct like "struct foo { .... } bar;", the function must return
'at-function-end.

* lisp/progmodes/cc-cmds.el (c-where-wrt-brace-construct): Surround an
existing test for 'at-function-end with an `or' form, the other arm testing
for being after the semicolon above.
lisp/progmodes/cc-cmds.el