(generic-mode-set-comments): Use characterp.
authorDave Love <fx@gnu.org>
Wed, 10 Sep 2003 17:53:26 +0000 (17:53 +0000)
committerDave Love <fx@gnu.org>
Wed, 10 Sep 2003 17:53:26 +0000 (17:53 +0000)
lisp/generic.el

index 7f20513..8088591 100644 (file)
@@ -297,8 +297,8 @@ Some generic modes are defined in `generic-x.el'."
        (when (consp start)
          (setq end (or (cdr start) end))
          (setq start (car start)))
-       (when (char-valid-p start) (setq start (char-to-string start)))
-       (when (char-valid-p end)   (setq end (char-to-string end)))
+       (when (characterp start) (setq start (char-to-string start)))
+       (when (characterp end)   (setq end (char-to-string end)))
 
        ;; Setup the vars for `comment-region'
        (if comment-start