]> code.delx.au - gnu-emacs/blobdiff - lisp/facemenu.el
* lisp/facemenu.el (list-colors-print): In help-echo format use %.2f
[gnu-emacs] / lisp / facemenu.el
index eb4554585a8c1271f949c8babf778602328eda6c..678aca24c1273d55461f868a6a9d76b0230f90a0 100644 (file)
@@ -1,6 +1,6 @@
 ;;; facemenu.el --- create a face menu for interactively adding fonts to text
 
-;; Copyright (C) 1994-1996, 2001-2013 Free Software Foundation, Inc.
+;; Copyright (C) 1994-1996, 2001-2014 Free Software Foundation, Inc.
 
 ;; Author: Boris Goldowsky <boris@gnu.org>
 ;; Keywords: faces
@@ -620,7 +620,7 @@ color.  The function should accept a single argument, the color name."
                 'help-echo
                 (let ((hsv (apply 'color-rgb-to-hsv
                                   (color-name-to-rgb (car color)))))
-                  (format "H:%d S:%d V:%d"
+                  (format "H:%.2f S:%.2f V:%.2f"
                           (nth 0 hsv) (nth 1 hsv) (nth 2 hsv)))))
        (when callback
          (make-text-button