Mercurial > emacs
diff lisp/generic.el @ 89492:e4a7ba6f6d81
(generic-mode-set-comments): Use characterp.
author | Dave Love <fx@gnu.org> |
---|---|
date | Wed, 10 Sep 2003 17:53:26 +0000 |
parents | 375f2633d815 |
children | 68c22ea6027c |
line wrap: on
line diff
--- a/lisp/generic.el Wed Sep 10 17:52:58 2003 +0000 +++ b/lisp/generic.el Wed Sep 10 17:53:26 2003 +0000 @@ -297,8 +297,8 @@ (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