Mercurial > emacs
diff lisp/progmodes/cc-vars.el @ 53073:49f65e04ba8e
CC Mode update (5.30.8).
author | Martin Stjernholm <mast@lysator.liu.se> |
---|---|
date | Sun, 16 Nov 2003 16:55:08 +0000 |
parents | ce6cc36ebb7c |
children | b7446b6f097d |
line wrap: on
line diff
--- a/lisp/progmodes/cc-vars.el Sun Nov 16 16:17:09 2003 +0000 +++ b/lisp/progmodes/cc-vars.el Sun Nov 16 16:55:08 2003 +0000 @@ -878,12 +878,11 @@ :group 'c) (defcustom-c-stylevar c-label-minimum-indentation 1 - "*Minimum indentation for lines inside of top-level constructs. + "*Minimum indentation for lines inside code blocks. This variable typically only affects code using the `gnu' style, which -mandates a minimum of one space in front of every line inside -top-level constructs. Specifically, the function -`c-gnu-impose-minimum' on your `c-special-indent-hook' is what -enforces this." +mandates a minimum of one space in front of every line inside code +blocks. Specifically, the function `c-gnu-impose-minimum' on your +`c-special-indent-hook' is what enforces this." :type 'integer :group 'c) @@ -1271,6 +1270,14 @@ (get 'c-offsets-alist 'c-stylevar-fallback))) :group 'c) +;; The syntactic symbols that can occur inside code blocks. Used by +;; `c-gnu-impose-minimum'. +(defconst c-inside-block-syms + '(defun-block-intro block-open block-close statement statement-cont + statement-block-intro statement-case-intro statement-case-open + substatement substatement-open substatement-label case-label label + do-while-closure else-clause catch-clause inlambda)) + (defcustom c-style-variables-are-local-p t "*Whether style variables should be buffer local by default. If non-nil, then all indentation style related variables will be made @@ -1575,7 +1582,7 @@ '1-bit) list))) - (let ((buf (generate-new-buffer "test")) + (let ((buf (generate-new-buffer " test")) parse-sexp-lookup-properties parse-sexp-ignore-comments lookup-syntax-properties)