]> git.eshelyaron.com Git - emacs.git/commit
c-find-decl-spots: Replace an arbitrary search limit by a parameter
authorAlan Mackenzie <acm@muc.de>
Wed, 26 Oct 2022 16:02:49 +0000 (16:02 +0000)
committerAlan Mackenzie <acm@muc.de>
Wed, 26 Oct 2022 16:02:49 +0000 (16:02 +0000)
commitb7e59b9e194ac287fe627ccb26159d2f6f04939b
treeb397430cc8ba738a5621822a59ab9463abf3fd72
parent5d46c0e329b90619b5e36beb376e9c73baf6c44e
c-find-decl-spots: Replace an arbitrary search limit by a parameter

The old arbitrary limit led to errors thrown whilst fontifying large areas of
syntactic whitespace containing "#undef", as in src/comp.c.

* lisp/progmodes/cc-engine.el (c-find-decl-spots): Replace the limit argument
to two calls of c-forward-syntactic-ws by the parameter `cfd-limit'.
lisp/progmodes/cc-engine.el