From 93fd8eebcc43afc1879fbe2b6a08ae88f5e4e12a Mon Sep 17 00:00:00 2001 From: Dave Love Date: Wed, 10 Sep 2003 17:53:26 +0000 Subject: [PATCH] (generic-mode-set-comments): Use characterp. --- lisp/generic.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2