aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-02-17 07:14:36 +0000
committerRichard M. Stallman1998-02-17 07:14:36 +0000
commit87f235fb1b432fc7fc8669bf067354cbd05f3982 (patch)
tree5793385e81b433ef0fab079b883d891bf1259da6
parent0bacd8d0b26c549094d13db9fdcc638d4f10baa7 (diff)
downloademacs-87f235fb1b432fc7fc8669bf067354cbd05f3982.tar.gz
emacs-87f235fb1b432fc7fc8669bf067354cbd05f3982.zip
(c-enable-xemacs-performance-kludge-p): New variable.
(c-default-style): Start doc string with *. (c-default-style): Renamed from c-site-default-style.
-rw-r--r--lisp/progmodes/cc-vars.el33
1 files changed, 24 insertions, 9 deletions
diff --git a/lisp/progmodes/cc-vars.el b/lisp/progmodes/cc-vars.el
index dc69729aa88..06dc8432eb6 100644
--- a/lisp/progmodes/cc-vars.el
+++ b/lisp/progmodes/cc-vars.el
@@ -1,6 +1,6 @@
1;;; cc-vars.el --- user customization variables for CC Mode 1;;; cc-vars.el --- user customization variables for CC Mode
2 2
3;; Copyright (C) 1985,87,92,93,94,95,96,97 Free Software Foundation, Inc. 3;; Copyright (C) 1985,87,92,93,94,95,96,97,98 Free Software Foundation, Inc.
4 4
5;; Authors: 1992-1997 Barry A. Warsaw 5;; Authors: 1992-1997 Barry A. Warsaw
6;; 1987 Dave Detlefs and Stewart Clamen 6;; 1987 Dave Detlefs and Stewart Clamen
@@ -309,13 +309,19 @@ this variable to nil."
309 :type 'integer 309 :type 'integer
310 :group 'c) 310 :group 'c)
311 311
312(defcustom c-site-default-style "gnu" 312(defcustom c-default-style "gnu"
313 "Default style for your site. 313 "*Style which gets installed by default.
314To change the default style at your site, you can set this variable to 314
315any style defined in `c-style-alist'. However, if CC Mode is usually 315The value of this variable can be any style defined in
316loaded into your Emacs at compile time, you will need to set this 316`c-style-alist', including styles you add, if you add them before CC
317variable in the `site-init.el' file before CC Mode is loaded, then 317Mode gets initialized. Note that if you set any CC Mode variables in
318re-dump Emacs." 318the top-level of your .emacs file (i.e. *not* in a hook), these get
319incorporated into the `user' style so you would need to add:
320
321 (setq c-default-style \"user\")
322
323to see your customizations. This is also true if you use the Custom
324interface -- be sure to set the default style to `user'."
319 :type 'string 325 :type 'string
320 :group 'c) 326 :group 'c)
321 327
@@ -381,6 +387,15 @@ This hook is only run once per Emacs session and can be used as a
381 :type 'hook 387 :type 'hook
382 :group 'c) 388 :group 'c)
383 389
390(defcustom c-enable-xemacs-performance-kludge-p t
391 "*Enables a XEmacs only hack that may improve speed for some coding styles.
392For styles that hang top-level opening braces (as is common with JDK
393Java coding styles) this can improve performance between 3 and 60
394times for core indentation functions (e.g. `c-parse-state'). For
395styles that conform to the Emacs recommendation of putting these
396braces in column zero, this may slightly degrade performance in some
397situations, but only by a few percentage points. This variable only
398has effect in XEmacs.")
384 399
385 400
386;; Non-customizable variables, still part of the interface to CC Mode 401;; Non-customizable variables, still part of the interface to CC Mode
@@ -406,7 +421,7 @@ as designated in the variable `c-file-style'.")
406(defvar c-syntactic-context nil 421(defvar c-syntactic-context nil
407 "Variable containing syntactic analysis list during indentation.") 422 "Variable containing syntactic analysis list during indentation.")
408 423
409(defvar c-indentation-style c-site-default-style 424(defvar c-indentation-style c-default-style
410 "Name of style installed in the current buffer.") 425 "Name of style installed in the current buffer.")
411 426
412 427