diff options
| author | Katsumi Yamaoka | 2010-11-24 06:22:51 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-11-24 06:22:51 +0000 |
| commit | 4b8b6f602a2a006f4a1a8257e1110eb3d3d8bb1b (patch) | |
| tree | b9903ed52025322df06497f7e538bb7bcf3a2d5d | |
| parent | 463bcf116e617a6e4e07da6b6d2d2e09018493de (diff) | |
| download | emacs-4b8b6f602a2a006f4a1a8257e1110eb3d3d8bb1b.tar.gz emacs-4b8b6f602a2a006f4a1a8257e1110eb3d3d8bb1b.zip | |
shr-color.el (shr-color->hexadecimal): Ignore case of color names.
| -rw-r--r-- | lisp/gnus/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/gnus/shr-color.el | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index a1f1fa5eaea..60173116746 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2010-11-24 Katsumi Yamaoka <yamaoka@jpl.org> | 1 | 2010-11-24 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 2 | ||
| 3 | * shr-color.el (shr-color->hexadecimal): Ignore case of color names. | ||
| 4 | |||
| 3 | * color-lab.el: Add coding cookie. | 5 | * color-lab.el: Add coding cookie. |
| 4 | (float-pi): Use eval-and-compile. | 6 | (float-pi): Use eval-and-compile. |
| 5 | 7 | ||
diff --git a/lisp/gnus/shr-color.el b/lisp/gnus/shr-color.el index d611609e39c..1e965673803 100644 --- a/lisp/gnus/shr-color.el +++ b/lisp/gnus/shr-color.el | |||
| @@ -260,8 +260,7 @@ Like rgb() or hsl()." | |||
| 260 | (shr-color-hsl-to-rgb-fractions h s l) | 260 | (shr-color-hsl-to-rgb-fractions h s l) |
| 261 | (format "#%02X%02X%02X" (* r 255) (* g 255) (* b 255))))) | 261 | (format "#%02X%02X%02X" (* r 255) (* g 255) (* b 255))))) |
| 262 | ;; Color names | 262 | ;; Color names |
| 263 | ((assoc color shr-color-html-colors-alist) | 263 | ((cdr (assoc-string color shr-color-html-colors-alist t))) |
| 264 | (cdr (assoc-string color shr-color-html-colors-alist t))) | ||
| 265 | ;; Unrecognized color :( | 264 | ;; Unrecognized color :( |
| 266 | (t | 265 | (t |
| 267 | nil)))) | 266 | nil)))) |