# HG changeset patch # User Juri Linkov # Date 1110318423 0 # Node ID 66456f4ae924643ed5b2937a04569069b5e3a2e1 # Parent f38eb69aa763e7e821f09f60d4025378d24d9957 (list-colors-print): Print #RRGGBB in default face. Remove 1 space before #RRGGBB to not truncate it on terminal windows w/o fringes. Remove 1 space between bg and fg examples to get more space. (list-colors-duplicates): Replace `and' with `if' for `boundp' to avoid byte-compile warnings. diff -r f38eb69aa763 -r 66456f4ae924 lisp/facemenu.el --- a/lisp/facemenu.el Tue Mar 08 21:45:00 2005 +0000 +++ b/lisp/facemenu.el Tue Mar 08 21:47:03 2005 +0000 @@ -513,17 +513,17 @@ 'face (cons 'background-color (car color))) (put-text-property (prog1 (point) - (insert " " (if (cdr color) - (mapconcat 'identity (cdr color) ", ") - (car color))) - (indent-to (max (- (window-width) 8) 44)) - (insert (apply 'format " #%02x%02x%02x" - (mapcar (lambda (c) (lsh c -8)) - (color-values (car color))))) + (insert " " (if (cdr color) + (mapconcat 'identity (cdr color) ", ") + (car color)))) + (point) + 'face (cons 'foreground-color (car color))) + (indent-to (max (- (window-width) 8) 44)) + (insert (apply 'format "#%02x%02x%02x" + (mapcar (lambda (c) (lsh c -8)) + (color-values (car color))))) - (insert "\n")) - (point) - 'face (cons 'foreground-color (car color)))) + (insert "\n")) (goto-char (point-min))) (defun list-colors-duplicates (&optional list) @@ -539,8 +539,8 @@ (l list)) (while (cdr l) (if (and (facemenu-color-equal (car (car l)) (car (car (cdr l)))) - (not (and (boundp 'w32-default-color-map) - (not (assoc (car (car l)) w32-default-color-map))))) + (not (if (boundp 'w32-default-color-map) + (not (assoc (car (car l)) w32-default-color-map))))) (progn (setcdr (car l) (cons (car (car (cdr l))) (cdr (car l)))) (setcdr l (cdr (cdr l))))