display class is one for which that info is relevant.
+2002-05-10 Miles Bader <miles@gnu.org>
+
+ * facemenu.el (list-colors-display): Don't use
+ `display-color-cells' unless the display class is one for which
+ that info is relevant.
+
2002-05-07 Simon Josefsson <jas@extundo.com>
* mail/smtpmail.el (smtpmail-send-it): Use user-mail-address from
(if (facemenu-color-equal (car l) (car (cdr l)))
(setcdr l (cdr (cdr l)))
(setq l (cdr l)))))
- ;; Don't show more than what the display can handle.
- (let ((lc (nthcdr (1- (display-color-cells)) list)))
- (if lc
- (setcdr lc nil))))
+ (when (memq (display-visual-class) '(gray-scale pseudo-color direct-color))
+ ;; Don't show more than what the display can handle.
+ (let ((lc (nthcdr (1- (display-color-cells)) list)))
+ (if lc
+ (setcdr lc nil)))))
(with-output-to-temp-buffer "*Colors*"
(save-excursion
(set-buffer standard-output)