branch: externals/rainbow-mode commit a8a8e2007148e3ab6d8bd332988d52e46fdc6657 Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
; Stop using obsolete x-color-values --- rainbow-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rainbow-mode.el b/rainbow-mode.el index e1767ef078..b085589001 100644 --- a/rainbow-mode.el +++ b/rainbow-mode.el @@ -250,7 +250,7 @@ will be enabled if a major mode has been detected from the ;;; X colors (defvar rainbow-x-colors-font-lock-keywords - `((,(regexp-opt (x-defined-colors) 'words) + `((,(regexp-opt (defined-colors) 'words) (0 (rainbow-colorize-itself)))) "Font-lock keywords to add for X colors.") @@ -1121,7 +1121,7 @@ Return a value between 0 and 1." (defun rainbow-x-color-luminance (color) "Calculate the relative luminance of a color string (e.g. \"#ffaa00\", \"blue\"). Return a value between 0 and 1." - (let* ((values (x-color-values color)) + (let* ((values (color-values color)) (r (/ (car values) 256.0)) (g (/ (cadr values) 256.0)) (b (/ (caddr values) 256.0)))