From 30ff2433b16dba2c4e36c6eda6f808c6f2cb46d1 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 22 Jun 2020 18:32:01 +0300 Subject: Minor improvements as followup to recent RGB string-parsing change * src/xfaces.c (Finternal_color_values_from_color_spec): Rename to... (Fcolor_values_from_color_spec): ...this. Callers changed. Rename the argument to SPEC and improve the doc string. (parse_color_spec, parse_float_color_comp, parse_hex_color_comp): Improve commentary. (parse_color_spec): Rename the argument S to SPEC. * etc/NEWS: Mention 'color-values-from-color-spec'. --- lisp/term/tty-colors.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp') diff --git a/lisp/term/tty-colors.el b/lisp/term/tty-colors.el index 73e2431822e..dda7fcc3691 100644 --- a/lisp/term/tty-colors.el +++ b/lisp/term/tty-colors.el @@ -923,7 +923,7 @@ The returned value reflects the standard Emacs definition of COLOR (see the info node `(emacs) Colors'), regardless of whether the terminal can display it, so the return value should be the same regardless of what display is being used." - (or (internal-color-values-from-color-spec color) + (or (color-values-from-color-spec color) (cdr (assoc color color-name-rgb-alist)))) (defun tty-color-translate (color &optional frame) -- cgit v1.2.3