Mercurial > emacs
diff lisp/progmodes/cc-mode.el @ 87320:80e1a8076c36
* 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.
author | Thien-Thi Nguyen <ttn@gnuvola.org> |
---|---|
date | Tue, 18 Dec 2007 09:21:07 +0000 |
parents | 264b4ccf31a8 |
children | 107ccd98fa12 56a72e2bd635 |
line wrap: on
line diff
--- a/lisp/progmodes/cc-mode.el Tue Dec 18 08:25:34 2007 +0000 +++ b/lisp/progmodes/cc-mode.el Tue Dec 18 09:21:07 2007 +0000 @@ -190,7 +190,8 @@ (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.