Require CL.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 23 Oct 2007 21:24:36 +0000 (21:24 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 23 Oct 2007 21:24:36 +0000 (21:24 +0000)
(comment-continue): Declare.

lisp/ChangeLog
lisp/textmodes/css-mode.el

index 4de00eb..177aeb1 100644 (file)
@@ -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.
 
index d215594..1061489 100644 (file)
@@ -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")
         (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))
         ;; 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