Fix minor bug in c-syntactic-re-search-forward.
commit15c16a5d3b45c95bcb0855b607f975310a707ee1
authorAlan Mackenzie <acm@muc.de>
Mon, 15 Aug 2016 16:22:36 +0000 (15 16:22 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 15 Aug 2016 16:22:36 +0000 (15 16:22 +0000)
tree9e19ae44a3ffc2fec6258813235811f7fd63e17f
parentce1ed9c8116e280c69f04a455176f6097ca0855c
Fix minor bug in c-syntactic-re-search-forward.

Bug was: when NOERROR is neither nil nor t, BOUND is non-nil, PAREN-LEVEL is
non-nil, and the first internal search attempt fails, point wrongly ends up at
BOUND, rather than just before the next closing paren.

* lisp/progmodes/cc-engine.el (c-syntactic-re-search-forward): Guard against
the above situation.
lisp/progmodes/cc-engine.el