CC Mode: Remove search limit to fontify first decl in xdisp.c

An unneeded 10,000 character search limit prevents the full
fontification of the first declaration of xdisp.c, since the
introductory commentary is longer than that.

* lisp/progmodes/cc-engine (c-find-decl-spots): Remove the
10,000 char limit.
This commit is contained in:
Alan Mackenzie 2024-10-05 17:28:28 +00:00
parent 24fe762503
commit 4c7a6dc1a0

View file

@ -6579,8 +6579,7 @@ comment at the start of cc-engine.el for more info."
;; we're just some syntactic whitespace further down we can
;; still use the cache to limit the skipping.
(c-backward-syntactic-ws
(max (or c-find-decl-syntactic-pos (point-min))
(- (point) 10000) (point-min))))
(max (or c-find-decl-syntactic-pos (point-min)) (point-min))))
;; If we hit `c-find-decl-syntactic-pos' and
;; `c-find-decl-match-pos' is set then we install the cached