changeset 89492:e4a7ba6f6d81

(generic-mode-set-comments): Use characterp.
author Dave Love <fx@gnu.org>
date Wed, 10 Sep 2003 17:53:26 +0000
parents af0933fdc21a
children add0d115c419
files lisp/generic.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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