From b08e34f03ac827e43310fe8aaa0c25bc7f12a034 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Tue, 8 Jul 2014 11:55:00 +0300 Subject: [PATCH] * lisp/facemenu.el (list-colors-print): In help-echo format use %.2f instead of %d because now HSV values are floating-point components between 0.0 and 1.0. --- lisp/ChangeLog | 6 ++++++ lisp/facemenu.el | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bfa5c5cd24b..4803ca0f1e1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2014-07-08 Juri Linkov + + * facemenu.el (list-colors-print): In help-echo format use %.2f + instead of %d because now HSV values are floating-point components + between 0.0 and 1.0. + 2014-07-06 Glenn Morris * emulation/cua-rect.el (cua--activate-rectangle): diff --git a/lisp/facemenu.el b/lisp/facemenu.el index 24613ecd236..678aca24c12 100644 --- a/lisp/facemenu.el +++ b/lisp/facemenu.el @@ -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 -- 2.39.5