changeset 79187:e3d75658c018

Require CL. (comment-continue): Declare.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 23 Oct 2007 21:24:36 +0000
parents 35b535f36d05
children 89ec8c04410c
files lisp/ChangeLog lisp/textmodes/css-mode.el
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue Oct 23 20:55:18 2007 +0000
+++ b/lisp/ChangeLog	Tue Oct 23 21:24:36 2007 +0000
@@ -1,5 +1,8 @@
 2007-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+	* textmodes/css-mode.el: Require CL.
+	(comment-continue): Declare.
+
 	* subr.el (make-variable-frame-localizable): Remove.
 	(make-variable-frame-local): Mark obsolete.
 
--- a/lisp/textmodes/css-mode.el	Tue Oct 23 20:55:18 2007 +0000
+++ b/lisp/textmodes/css-mode.el	Tue Oct 23 21:24:36 2007 +0000
@@ -33,6 +33,8 @@
 
 ;;; Code:
 
+(eval-when-compile (require 'cl))
+
 (defun css-extract-keyword-list (res)
   (with-temp-buffer
     (url-insert-file-contents "http://www.w3.org/TR/REC-CSS2/css2.txt")
@@ -270,6 +272,8 @@
         (aset fc c 'indent-according-to-mode))
       (set (make-local-variable 'auto-fill-chars) fc))))
 
+(defvar comment-continue)
+
 (defun css-fill-paragraph (&optional justify)
   (save-excursion
     (let ((ppss (syntax-ppss))
@@ -286,7 +290,7 @@
         ;; css-mode but for all modes.
         (save-restriction
           (narrow-to-region (nth 8 ppss) eol)
-          (comment-normalize-vars)
+          (comment-normalize-vars)      ;Will define comment-continue.
           (let ((fill-paragraph-function nil)
                 (paragraph-separate
                  (if (and comment-continue