From: Alan Mackenzie Date: Sat, 5 Oct 2024 17:28:28 +0000 (+0000) Subject: CC Mode: Remove search limit to fontify first decl in xdisp.c X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=98005e18c2c053bd8dc2fc7198619d89791458f4;p=emacs.git 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. (cherry picked from commit 4c7a6dc1a0ce8fe7bb603c907efb52d2ecf30858) --- diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index 0f42a905706..0898f28b880 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el @@ -6578,8 +6578,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