]> git.eshelyaron.com Git - emacs.git/commitdiff
(ruler-mode-character-validate): Use characterp.
authorDave Love <fx@gnu.org>
Sun, 18 Aug 2002 13:37:11 +0000 (13:37 +0000)
committerDave Love <fx@gnu.org>
Sun, 18 Aug 2002 13:37:11 +0000 (13:37 +0000)
lisp/ruler-mode.el

index 840934f1693791f8fa0377ab912ecf9f325207d7..be30afd786139f304b17ceac31fdc28bc05d61ad 100644 (file)
@@ -123,8 +123,7 @@ or remove a tab stop.  \\[ruler-mode-toggle-show-tab-stops] or
   "Ensure WIDGET value is a valid character value."
   (save-excursion
     (let ((value (widget-value widget)))
-      (if (char-valid-p value)
-          nil
+      (unless (characterp value)
         (widget-put widget :error
                     (format "Invalid character value: %S" value))
         widget))))