aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-08-11 22:10:16 +0000
committerRichard M. Stallman1997-08-11 22:10:16 +0000
commitd278ad4fd2957232b1668d6d8be0302d8cc23b69 (patch)
tree27fc9245812a59ed02af821e74b91a6df91d351b
parent0fc3821efeda1d8cc8967d30caa1defa0e60350c (diff)
downloademacs-d278ad4fd2957232b1668d6d8be0302d8cc23b69.tar.gz
emacs-d278ad4fd2957232b1668d6d8be0302d8cc23b69.zip
(c-buffer-is-cc-mode): New variable.
(c-comment-continuation-stars): New variable.
-rw-r--r--lisp/progmodes/cc-vars.el21
1 files changed, 20 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-vars.el b/lisp/progmodes/cc-vars.el
index bbf22681160..f5fd9b1fc62 100644
--- a/lisp/progmodes/cc-vars.el
+++ b/lisp/progmodes/cc-vars.el
@@ -7,7 +7,7 @@
7;; 1985 Richard M. Stallman 7;; 1985 Richard M. Stallman
8;; Maintainer: cc-mode-help@python.org 8;; Maintainer: cc-mode-help@python.org
9;; Created: 22-Apr-1997 (split from cc-mode.el) 9;; Created: 22-Apr-1997 (split from cc-mode.el)
10;; Version: 5.14 10;; Version: 5.15
11;; Keywords: c languages oop 11;; Keywords: c languages oop
12 12
13;; This file is part of GNU Emacs. 13;; This file is part of GNU Emacs.
@@ -105,6 +105,17 @@ according to syntactic analysis via `c-offsets-alist', even when
105 :type 'boolean 105 :type 'boolean
106 :group 'c) 106 :group 'c)
107 107
108(defcustom c-comment-continuation-stars "* "
109 "*Specifies the leader of continued block comments.
110You should set this variable to the literal string that gets inserted
111at the front of continued block style comment lines. This should
112either be the empty string, or some number of stars followed by a
113single space. Note that for line style comments, this variable is not
114used."
115 :type '(choice (const :tag "Use old semantics" nil)
116 string)
117 :group 'c)
118
108(defcustom c-cleanup-list '(scope-operator) 119(defcustom c-cleanup-list '(scope-operator)
109 "*List of various C/C++/ObjC constructs to \"clean up\". 120 "*List of various C/C++/ObjC constructs to \"clean up\".
110These clean ups only take place when the auto-newline feature is 121These clean ups only take place when the auto-newline feature is
@@ -398,6 +409,14 @@ as designated in the variable `c-file-style'.")
398(defvar c-indentation-style c-site-default-style 409(defvar c-indentation-style c-site-default-style
399 "Name of style installed in the current buffer.") 410 "Name of style installed in the current buffer.")
400 411
412(defvar c-buffer-is-cc-mode nil
413 "Non-nil for all buffers with a `major-mode' derived from CC Mode.
414Otherwise, this variable is nil. I.e. this variable is non-nil for
415`c-mode', `c++-mode', `objc-mode', `java-mode', `idl-mode', and any
416other non-CC Mode mode that calls `c-initialize-cc-mode'
417\(e.g. `awk-mode').")
418(make-variable-buffer-local 'c-buffer-is-cc-mode)
419
401 420
402(provide 'cc-vars) 421(provide 'cc-vars)
403;;; cc-vars.el ends here 422;;; cc-vars.el ends here