1 new commit in cc-mode:
https://bitbucket.org/xemacs/cc-mode/changeset/e6f8eb002359/
changeset: e6f8eb002359
user: acm
date: 2012-12-23 11:35:20
summary: Speed up fontification where there's large brace blocks.
cc-fonts.el (c-font-lock-enclosing-decls): Add a limit to a call of
c-beginning-of-decl-1.
affected #: 1 file
diff -r 0c31562f87fd76a707124ecddba15835454e25d9 -r
e6f8eb00235954a871e6f44c161e09d34cd2af69 cc-fonts.el
--- a/cc-fonts.el
+++ b/cc-fonts.el
@@ -1558,6 +1558,7 @@
;; prevent a repeat invocation. See elisp/lispref page "Search-based
;; Fontification".
(let* ((paren-state (c-parse-state))
+ (decl-search-lim (c-determine-limit 1000))
decl-context in-typedef ps-elt)
;; Are we in any nested struct/union/class/etc. braces?
(while paren-state
@@ -1566,7 +1567,7 @@
(when (and (atom ps-elt)
(eq (char-after ps-elt) ?\{))
(goto-char ps-elt)
- (setq decl-context (c-beginning-of-decl-1)
+ (setq decl-context (c-beginning-of-decl-1 decl-search-lim)
in-typedef (looking-at c-typedef-key))
(if in-typedef (c-forward-token-2))
(when (and c-opt-block-decls-with-vars-key
Repository URL:
https://bitbucket.org/xemacs/cc-mode/
--
This is a commit notification from
bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-patches