From: Alan Mackenzie Date: Fri, 7 Mar 2008 22:31:59 +0000 (+0000) Subject: (Limitations and Known Bugs): State that the number of parens/brackets in X-Git-Tag: emacs-pretest-23.0.90~7397 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f1bb4ee1b8e34a55b5640e46bc5e7ea7d3070d12;p=emacs.git (Limitations and Known Bugs): State that the number of parens/brackets in a k&r region is limited. --- diff --git a/doc/misc/cc-mode.texi b/doc/misc/cc-mode.texi index 8ac9588c305..0bbe639e6db 100644 --- a/doc/misc/cc-mode.texi +++ b/doc/misc/cc-mode.texi @@ -6759,6 +6759,14 @@ it and font-locks it OK. Templates used in expressions, and nested templates do not fare so well. Sometimes a workaround is to refontify the expression after typing the closing @samp{>}. +@item +In a @dfn{k&r region} (the part of an old-fashioned C function +declaration which specifies the types of its parameters, coming +between the parameter list and the opening brace), there should be at +most 20 top-level parenthesis and bracket pairs. This limit has been +imposed for performance reasons. If it is violated, the source file +might be incorrectly indented or fontified. + @item On loading @ccmode{}, sometimes this error message appears: diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d162ea33fb1..9d267a7d863 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2008-03-07 Alan Mackenzie + + * progmodes/cc-engine.el (c-in-knr-argdecl): Limit number of + paren/bracket pairs parsed, to solve performance problem. + 2008-03-07 Bastien Guerry * bookmark.el (bookmark-set): Don't check for