summaryrefslogtreecommitdiff
path: root/lisp/progmodes/cc-mode.el
diff options
context:
space:
mode:
authorThien-Thi Nguyen <ttn@gnuvola.org>2007-12-18 09:21:28 +0000
committerThien-Thi Nguyen <ttn@gnuvola.org>2007-12-18 09:21:28 +0000
commitd2f795854ea4d0eb76b470779e38e5f8a23e9847 (patch)
treea4294dc585aae5117015a67fdd5f2ca6d64d3ccf /lisp/progmodes/cc-mode.el
parent5f01100afe3475bafa640343f6701d9b219ea70f (diff)
downloademacs-d2f795854ea4d0eb76b470779e38e5f8a23e9847.tar.gz
emacs-d2f795854ea4d0eb76b470779e38e5f8a23e9847.tar.bz2
emacs-d2f795854ea4d0eb76b470779e38e5f8a23e9847.zip
* progmodes/cc-vars.el (defcustom-c-stylevar): Eval VAL.
(c-comment-continuation-stars): No longer declare with cc-bytecomp-obsolete-var and cc-bytecomp-defvar. (c-block-comment-prefix): Use symbol-value to access c-comment-continuation-stars. * progmodes/cc-mode.el (c-initialize-cc-mode): Use symbol-value to access c-comment-continuation-stars.
Diffstat (limited to 'lisp/progmodes/cc-mode.el')
-rw-r--r--lisp/progmodes/cc-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el
index 00ec64a85a0..711fa02b2f4 100644
--- a/lisp/progmodes/cc-mode.el
+++ b/lisp/progmodes/cc-mode.el
@@ -190,7 +190,8 @@ control). See \"cc-mode.el\" for more info."
(run-hooks 'c-initialization-hook)
;; Fix obsolete variables.
(if (boundp 'c-comment-continuation-stars)
- (setq c-block-comment-prefix c-comment-continuation-stars))
+ (setq c-block-comment-prefix
+ (symbol-value 'c-comment-continuation-stars)))
(add-hook 'change-major-mode-hook 'c-leave-cc-mode-mode)
(setq c-initialization-ok t))
;; Will try initialization hooks again if they failed.