From: Eli Zaretskii Date: Wed, 2 Feb 2000 11:34:25 +0000 (+0000) Subject: Don't count colors without RGB values as gray shades. X-Git-Tag: emacs-pretest-21.0.90~5134 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=26b09289edeee16d2f20450bdf77dfa111ba9183;p=emacs.git Don't count colors without RGB values as gray shades. --- diff --git a/lisp/term/tty-colors.el b/lisp/term/tty-colors.el index 03fef2a3421..1fe98192540 100644 --- a/lisp/term/tty-colors.el +++ b/lisp/term/tty-colors.el @@ -971,7 +971,8 @@ A color is considered gray if the 3 components of its RGB value are equal." r (car desc) g (cadr desc) b (car (cddr desc))) - (and (eq r g) (eq g b) + (and (numberp r) + (eq r g) (eq g b) (setq count (1+ count))) (setq colors (cdr colors))) count))