diff options
Diffstat (limited to 'lisp/generic.el')
-rw-r--r-- | lisp/generic.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/generic.el b/lisp/generic.el index fe3c2c274af..d40b0b34674 100644 --- a/lisp/generic.el +++ b/lisp/generic.el @@ -295,9 +295,9 @@ 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 (characterp start) (setq start (char-to-string start))) (cond - ((char-valid-p end) (setq end (char-to-string end))) + ((characterp end) (setq end (char-to-string end))) ((zerop (length end)) (setq end "\n"))) ;; Setup the vars for `comment-region' |