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 19:10:13 +0300 Message-ID: <83v8vb3au2.fsf@gnu.org> References: <8735ifom48.fsf@gnus.org> <83y2073hen.fsf@gnu.org> <87sfqflqe2.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4699"; 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 18:11:32 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 1nf24C-00014m-FZ for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Apr 2022 18:11:32 +0200 Original-Received: from localhost ([::1]:52666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nf24B-0002HV-7z for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Apr 2022 12:11:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nf22m-0001HK-CS for emacs-devel@gnu.org; Thu, 14 Apr 2022 12:10:04 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35652) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nf22m-0002wj-2T; Thu, 14 Apr 2022 12:10:04 -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=ssKEyZD8Ufd7pln3vax/zlp5T/Z7Npr1K41dItEAtHE=; b=GF0tY8a8Xz8x PfrJAbCoRODX0KN9iDRX+rrtXOHCYhPuHHFwPQdHs4pHD1ZvXVOPAxwyn7GbvysWrtqS+Q/uMslmC jo0Pk2AWZSF86eMLZQs2ozyMmZXuzhEGtQk02qWsWcWGWzVYhQ2zxBc7kxKcw9H1n7u3ADiD0aQTd kcOJNey2EiAC+y/0vX36T6+qEx6VIXt8tSatpLqm2OjRjXEpZFy/Ln2mQ45/prXGHBBcoNcOKj8BK XvYTLEB8qaIP+MAieC6dLit7i/o3I9ezp5bUaZicZtqQKfFOdtvyHfk8txsvxGMGKKznT3ZrLgZzj dlXdo9El9Cp3KEgpPeTdgQ==; Original-Received: from [87.69.77.57] (port=2685 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 1nf22l-0008CW-H0; Thu, 14 Apr 2022 12:10:03 -0400 In-Reply-To: <87sfqflqe2.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 14 Apr 2022 15:56:53 +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:288403 Archived-At: > From: Lars Ingebrigtsen > Date: Thu, 14 Apr 2022 15:56:53 +0200 > Cc: emacs-devel@gnu.org > > Eli Zaretskii writes: > > > 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? > > It's not about foreground or background colours, it's about choosing a > colour based on features of the current frame, like defface. But the result should be a face, right? So you want an easy-to-use facility to create a face that depends on the background-mode? Or am I misunderstanding again? And if I am misunderstanding, can you please describe the use case in more detail?