aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/progmodes/cc-mode.el3
-rw-r--r--lisp/progmodes/cc-vars.el9
3 files changed, 17 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3c348071fda..f427ca3c9a1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,13 @@
12007-12-18 Thien-Thi Nguyen <ttn@gnuvola.org>
2
3 * progmodes/cc-vars.el (defcustom-c-stylevar): Eval VAL.
4 (c-comment-continuation-stars): No longer declare with
5 cc-bytecomp-obsolete-var and cc-bytecomp-defvar.
6 (c-block-comment-prefix): Use symbol-value to
7 access c-comment-continuation-stars.
8 * progmodes/cc-mode.el (c-initialize-cc-mode):
9 Use symbol-value to access c-comment-continuation-stars.
10
12007-12-18 Mark A. Hershberger <mah@everybody.org> 112007-12-18 Mark A. Hershberger <mah@everybody.org>
2 12
3 * xml.el (xml-escape-string): New function. Escape string using 13 * xml.el (xml-escape-string): New function. Escape string using
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."
190 (run-hooks 'c-initialization-hook) 190 (run-hooks 'c-initialization-hook)
191 ;; Fix obsolete variables. 191 ;; Fix obsolete variables.
192 (if (boundp 'c-comment-continuation-stars) 192 (if (boundp 'c-comment-continuation-stars)
193 (setq c-block-comment-prefix c-comment-continuation-stars)) 193 (setq c-block-comment-prefix
194 (symbol-value 'c-comment-continuation-stars)))
194 (add-hook 'change-major-mode-hook 'c-leave-cc-mode-mode) 195 (add-hook 'change-major-mode-hook 'c-leave-cc-mode-mode)
195 (setq c-initialization-ok t)) 196 (setq c-initialization-ok t))
196 ;; Will try initialization hooks again if they failed. 197 ;; Will try initialization hooks again if they failed.
diff --git a/lisp/progmodes/cc-vars.el b/lisp/progmodes/cc-vars.el
index c071569d694..6110ab2250f 100644
--- a/lisp/progmodes/cc-vars.el
+++ b/lisp/progmodes/cc-vars.el
@@ -183,7 +183,7 @@ the value set here overrides the style system (there is a variable
183 (newt (append (unless (plist-get tail :tag) 183 (newt (append (unless (plist-get tail :tag)
184 '(:tag "Override style settings")) 184 '(:tag "Override style settings"))
185 (unless (plist-get tail :value) 185 (unless (plist-get tail :value)
186 `(:value ,val)) 186 `(:value ,(eval val)))
187 tail)) 187 tail))
188 (aggregate `'(radio 188 (aggregate `'(radio
189 (const :tag "Use style settings" set-from-style) 189 (const :tag "Use style settings" set-from-style)
@@ -440,12 +440,13 @@ comment-only lines."
440;; Although c-comment-continuation-stars is obsolete, we look at it in 440;; Although c-comment-continuation-stars is obsolete, we look at it in
441;; some places in CC Mode anyway, so make the compiler ignore it 441;; some places in CC Mode anyway, so make the compiler ignore it
442;; during our compilation. 442;; during our compilation.
443(cc-bytecomp-obsolete-var c-comment-continuation-stars) 443;; [This is unclean; better to use `symbol-value'. --ttn]
444(cc-bytecomp-defvar c-comment-continuation-stars) 444;;(cc-bytecomp-obsolete-var c-comment-continuation-stars)
445;;(cc-bytecomp-defvar c-comment-continuation-stars)
445 446
446(defcustom-c-stylevar c-block-comment-prefix 447(defcustom-c-stylevar c-block-comment-prefix
447 (if (boundp 'c-comment-continuation-stars) 448 (if (boundp 'c-comment-continuation-stars)
448 c-comment-continuation-stars 449 (symbol-value 'c-comment-continuation-stars)
449 "* ") 450 "* ")
450 "*Specifies the line prefix of continued C-style block comments. 451 "*Specifies the line prefix of continued C-style block comments.
451You should set this variable to the literal string that gets inserted 452You should set this variable to the literal string that gets inserted