diff options
| author | Alan Mackenzie | 2024-10-05 17:28:28 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2024-10-05 17:28:28 +0000 |
| commit | 4c7a6dc1a0ce8fe7bb603c907efb52d2ecf30858 (patch) | |
| tree | ca58a3aa20eab839b16bc711c897f13158f12e68 | |
| parent | 24fe762503ee5e36f49f01e538d89ab986f1f593 (diff) | |
| download | emacs-4c7a6dc1a0ce8fe7bb603c907efb52d2ecf30858.tar.gz emacs-4c7a6dc1a0ce8fe7bb603c907efb52d2ecf30858.zip | |
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.
| -rw-r--r-- | lisp/progmodes/cc-engine.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index f6c255dfab1..868267f06f4 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el | |||
| @@ -6579,8 +6579,7 @@ comment at the start of cc-engine.el for more info." | |||
| 6579 | ;; we're just some syntactic whitespace further down we can | 6579 | ;; we're just some syntactic whitespace further down we can |
| 6580 | ;; still use the cache to limit the skipping. | 6580 | ;; still use the cache to limit the skipping. |
| 6581 | (c-backward-syntactic-ws | 6581 | (c-backward-syntactic-ws |
| 6582 | (max (or c-find-decl-syntactic-pos (point-min)) | 6582 | (max (or c-find-decl-syntactic-pos (point-min)) (point-min)))) |
| 6583 | (- (point) 10000) (point-min)))) | ||
| 6584 | 6583 | ||
| 6585 | ;; If we hit `c-find-decl-syntactic-pos' and | 6584 | ;; If we hit `c-find-decl-syntactic-pos' and |
| 6586 | ;; `c-find-decl-match-pos' is set then we install the cached | 6585 | ;; `c-find-decl-match-pos' is set then we install the cached |