From: Dave Love Date: Wed, 10 Sep 2003 17:53:26 +0000 (+0000) Subject: (generic-mode-set-comments): Use characterp. X-Git-Tag: emacs-pretest-23.0.90~8295^2~1856 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=93fd8eebcc43afc1879fbe2b6a08ae88f5e4e12a;p=emacs.git (generic-mode-set-comments): Use characterp. --- diff --git a/lisp/generic.el b/lisp/generic.el index 7f2051329c9..80885915e70 100644 --- a/lisp/generic.el +++ b/lisp/generic.el @@ -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