]> git.eshelyaron.com Git - emacs.git/commitdiff
* progmodes/cc-vars.el (defcustom-c-stylevar): Eval VAL.
authorThien-Thi Nguyen <ttn@gnuvola.org>
Tue, 18 Dec 2007 09:21:28 +0000 (09:21 +0000)
committerThien-Thi Nguyen <ttn@gnuvola.org>
Tue, 18 Dec 2007 09:21:28 +0000 (09:21 +0000)
(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.

lisp/ChangeLog
lisp/progmodes/cc-mode.el
lisp/progmodes/cc-vars.el

index 3c348071fda8013352ec4eec3b0b52a59b83cec1..f427ca3c9a1f85db4f687ec7c99a8354d3866529 100644 (file)
@@ -1,3 +1,13 @@
+2007-12-18  Thien-Thi Nguyen  <ttn@gnuvola.org>
+
+       * 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.
+
 2007-12-18  Mark A. Hershberger  <mah@everybody.org>
 
        * xml.el (xml-escape-string): New function.  Escape string using
index 00ec64a85a0e2686560c4677a833d55d035a1020..711fa02b2f4846cbb8b76203933c402f1bf845e1 100644 (file)
@@ -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.
index c071569d694bf8dfaf37624a627f997f43fae2c1..6110ab2250f2fc0a66db03d7b3739bda14eae0b1 100644 (file)
@@ -183,7 +183,7 @@ the value set here overrides the style system (there is a variable
          (newt (append (unless (plist-get tail :tag)
                          '(:tag "Override style settings"))
                        (unless (plist-get tail :value)
-                         `(:value ,val))
+                         `(:value ,(eval val)))
                        tail))
          (aggregate `'(radio
                        (const :tag "Use style settings" set-from-style)
@@ -440,12 +440,13 @@ comment-only lines."
 ;; Although c-comment-continuation-stars is obsolete, we look at it in
 ;; some places in CC Mode anyway, so make the compiler ignore it
 ;; during our compilation.
-(cc-bytecomp-obsolete-var c-comment-continuation-stars)
-(cc-bytecomp-defvar c-comment-continuation-stars)
+;; [This is unclean; better to use `symbol-value'. --ttn]
+;;(cc-bytecomp-obsolete-var c-comment-continuation-stars)
+;;(cc-bytecomp-defvar c-comment-continuation-stars)
 
 (defcustom-c-stylevar c-block-comment-prefix
   (if (boundp 'c-comment-continuation-stars)
-      c-comment-continuation-stars
+      (symbol-value 'c-comment-continuation-stars)
     "* ")
   "*Specifies the line prefix of continued C-style block comments.
 You should set this variable to the literal string that gets inserted