aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatsumi Yamaoka2010-11-24 01:28:37 +0000
committerKatsumi Yamaoka2010-11-24 01:28:37 +0000
commit463bcf116e617a6e4e07da6b6d2d2e09018493de (patch)
tree9659df9b1b5cb714096cb48594549f139d104a3a
parent1110d53b4e577e1ad2adb25ae1d259768d84563b (diff)
downloademacs-463bcf116e617a6e4e07da6b6d2d2e09018493de.tar.gz
emacs-463bcf116e617a6e4e07da6b6d2d2e09018493de.zip
color-lab.el: Add coding cookie.
color-lab.el (float-pi): Use eval-and-compile.
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/color-lab.el9
2 files changed, 11 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 41eab2f092a..a1f1fa5eaea 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12010-11-24 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * color-lab.el: Add coding cookie.
4 (float-pi): Use eval-and-compile.
5
12010-11-23 Lars Magne Ingebrigtsen <larsi@gnus.org> 62010-11-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 7
3 * shr.el (shr-insert-color-overlay): Split stuff like 8 * shr.el (shr-insert-color-overlay): Split stuff like
diff --git a/lisp/gnus/color-lab.el b/lisp/gnus/color-lab.el
index 16f711a3c9a..c5a953cea35 100644
--- a/lisp/gnus/color-lab.el
+++ b/lisp/gnus/color-lab.el
@@ -1,4 +1,4 @@
1;;; color-lab.el --- Color manipulation laboratory routines 1;;; color-lab.el --- Color manipulation laboratory routines -*- coding: utf-8; -*-
2 2
3;; Copyright (C) 2010 Free Software Foundation, Inc. 3;; Copyright (C) 2010 Free Software Foundation, Inc.
4 4
@@ -27,8 +27,9 @@
27;;; Code: 27;;; Code:
28 28
29;; Emacs < 23.3 29;; Emacs < 23.3
30(unless (boundp 'float-pi) 30(eval-and-compile
31 (defconst float-pi (* 4 (atan 1)) "The value of Pi (3.1415926...).")) 31 (unless (boundp 'float-pi)
32 (defconst float-pi (* 4 (atan 1)) "The value of Pi (3.1415926...).")))
32 33
33(defun rgb->hsv (red green blue) 34(defun rgb->hsv (red green blue)
34 "Convert RED GREEN BLUE values to HSV representation. 35 "Convert RED GREEN BLUE values to HSV representation.
@@ -243,3 +244,5 @@ Colors must be in CIE L*a*b* format."
243 (* Rt (/ ΔC′ (* Sc kC)) (/ ΔH′ (* Sh kH))))))))) 244 (* Rt (/ ΔC′ (* Sc kC)) (/ ΔH′ (* Sh kH)))))))))
244 245
245(provide 'color-lab) 246(provide 'color-lab)
247
248;;; color-lab.el ends here