From: Katsumi Yamaoka Date: Wed, 24 Nov 2010 06:20:57 +0000 (+0000) Subject: shr-color.el (shr-color->hexadecimal): Ignore case of color names. X-Git-Url: http://cgit.sxemacs.org/?a=commitdiff_plain;h=8dfb83906fbf70bf5f1ec733692bd5804cc84b71;p=gnus shr-color.el (shr-color->hexadecimal): Ignore case of color names. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 69dc194a9..3e95873c2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2010-11-24 Katsumi Yamaoka + * shr-color.el (shr-color->hexadecimal): Ignore case of color names. + * color-lab.el: Add coding cookie. (float-pi): Use eval-and-compile. diff --git a/lisp/shr-color.el b/lisp/shr-color.el index d611609e3..1e9656738 100644 --- a/lisp/shr-color.el +++ b/lisp/shr-color.el @@ -260,8 +260,7 @@ Like rgb() or hsl()." (shr-color-hsl-to-rgb-fractions h s l) (format "#%02X%02X%02X" (* r 255) (* g 255) (* b 255))))) ;; Color names - ((assoc color shr-color-html-colors-alist) - (cdr (assoc-string color shr-color-html-colors-alist t))) + ((cdr (assoc-string color shr-color-html-colors-alist t))) ;; Unrecognized color :( (t nil))))