From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Dependent colours Date: Thu, 14 Apr 2022 16:48:16 +0300 Message-ID: <83y2073hen.fsf@gnu.org> References: <8735ifom48.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40775"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 14 15:49:42 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nezqo-000A9C-KM for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Apr 2022 15:49:34 +0200 Original-Received: from localhost ([::1]:42316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nezqn-0005Os-DL for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Apr 2022 09:49:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nezpQ-0003Tg-F6 for emacs-devel@gnu.org; Thu, 14 Apr 2022 09:48:08 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60900) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nezpQ-0004cZ-5f; Thu, 14 Apr 2022 09:48:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=0AyGZV9C43sEm1GQFdWikHtUkP12+10J2On/EBFVqn0=; b=h5olFblkqbEw tpyq9onpYq+71ToOyRmIkJ2h6J15/GUW0S13lM10MrAfZOw85Ep4gLpfvce6jW41Kp1WXBTq4gOdZ vhzscfIy+QLy8l3dNIIshkGWm3YttUVj7mJu/BVGR9VV60W4xOOrmnIhwLOZiXK3GWqi/aXipCrqL NAnoeWKhuOXOWt9+3sZcnp7BleO+KTMUgvY0CGt8AvvBVfCUycEzmrVNRyEhJO1uNypb29wJVa6VV N40hWAELAP+Orw1RV6gKlHXYwjohjMDRvj5BaRVmYkd+hTd6M06qE5itEOrFF8DVbTtFkx4wOjZIm bZgRIbbrJv6whghLUig7XQ==; Original-Received: from [87.69.77.57] (port=1856 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nezpP-0006FL-Kh; Thu, 14 Apr 2022 09:48:07 -0400 In-Reply-To: <8735ifom48.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 14 Apr 2022 15:00:55 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:288389 Archived-At: > From: Lars Ingebrigtsen > Date: Thu, 14 Apr 2022 15:00:55 +0200 > > In many situations, packages and users need to specify colours to use > for something. We generally defer this to the face machinery, because > which colours to use for something might depend on whether you have a > light or dark background, or whether it's a GUI Emacs or a terminal one, > etc. > > This works well as a machinery, but it's pretty cumbersome when the user > just wants to specify a list of colours. > > So I'm wondering whether we could create something that would make > things easier for the user here, and if anybody had any thoughts on the > issue. > > Off the top of my head... if we had something like > > (make-color "red") > > (make-color ((background light) "blue") > ((background dark) "red")) > > Uhm... Or something... better... :-) I'm not sure I understand: we already have anonymous faces one can get by specifying just the colors, as in '(:foreground "red" :background "blue") Why is that not enough?