comparison lisp/progmodes/cc-styles.el @ 30400:58d2360c8677

(c-style-alist): The basic offset for the BSD style corrected to 8. (c-style-alist): Adjusted the indentation of brace list openers in the gnu style. (c-make-styles-buffer-local): Flag style variable localness in c-style-variables-are-local-p to make the compatibility measure in c-common-init work well. (c-set-style-1): c-special-indent-hook can no longer contain set-from-style. (c-initialize-builtin-style): Don't check for set-from-style on c-special-indent-hook. (c-copy-tree): Obsolete. The standard function copy-alist is sufficient now. (c-set-style, c-set-style-1, c-get-style-variables): Fixes to variable initialization so that duplicate entries in styles have the same effect regardless of DONT-OVERRIDE. (c-set-style-2): Fixed bug where the initialization of inheriting styles failed when the dont-override flag is set.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 24 Jul 2000 11:10:15 +0000
parents 03befb219d03
children dd613770eb0f
comparison
equal deleted inserted replaced
30399:7b0a7b155fe2 30400:58d2360c8677
1 ;;; cc-styles.el --- support for styles in CC Mode 1 ;;; cc-styles.el --- support for styles in CC Mode
2 2
3 ;; Copyright (C) 1985,1987,1992-1999 Free Software Foundation, Inc. 3 ;; Copyright (C) 1985,1987,1992-2000 Free Software Foundation, Inc.
4 4
5 ;; Authors: 1998-1999 Barry A. Warsaw and Martin Stjernholm 5 ;; Authors: 2000- Martin Stjernholm
6 ;; 1998-1999 Barry A. Warsaw and Martin Stjernholm
6 ;; 1992-1997 Barry A. Warsaw 7 ;; 1992-1997 Barry A. Warsaw
7 ;; 1987 Dave Detlefs and Stewart Clamen 8 ;; 1987 Dave Detlefs and Stewart Clamen
8 ;; 1985 Richard M. Stallman 9 ;; 1985 Richard M. Stallman
9 ;; Maintainer: bug-cc-mode@gnu.org 10 ;; Maintainer: bug-cc-mode@gnu.org
10 ;; Created: 22-Apr-1997 (split from cc-mode.el) 11 ;; Created: 22-Apr-1997 (split from cc-mode.el)
52 (statement-case-open . +) 53 (statement-case-open . +)
53 (statement-cont . +) 54 (statement-cont . +)
54 (arglist-intro . c-lineup-arglist-intro-after-paren) 55 (arglist-intro . c-lineup-arglist-intro-after-paren)
55 (arglist-close . c-lineup-arglist) 56 (arglist-close . c-lineup-arglist)
56 (inline-open . 0) 57 (inline-open . 0)
58 (brace-list-open . +)
57 )) 59 ))
58 (c-special-indent-hook . c-gnu-impose-minimum) 60 (c-special-indent-hook . c-gnu-impose-minimum)
59 (c-block-comment-prefix . "") 61 (c-block-comment-prefix . "")
60 ) 62 )
61 ("k&r" 63 ("k&r"
67 (label . 0) 69 (label . 0)
68 (statement-cont . +) 70 (statement-cont . +)
69 )) 71 ))
70 ) 72 )
71 ("bsd" 73 ("bsd"
72 (c-basic-offset . 4) 74 (c-basic-offset . 8)
73 (c-comment-only-line-offset . 0) 75 (c-comment-only-line-offset . 0)
74 (c-offsets-alist . ((statement-block-intro . +) 76 (c-offsets-alist . ((statement-block-intro . +)
75 (knr-argdecl-intro . +) 77 (knr-argdecl-intro . +)
76 (substatement-open . 0) 78 (substatement-open . 0)
77 (label . 0) 79 (label . 0)