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:23:38 +0300 Message-ID: <83pmlj3a7p.fsf@gnu.org> References: <8735ifom48.fsf@gnus.org> <83y2073hen.fsf@gnu.org> <87sfqflqe2.fsf@gnus.org> <83v8vb3au2.fsf@gnu.org> <87czhjk5h7.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33643"; 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:24:41 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 1nf2Gv-0008Yb-0c for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Apr 2022 18:24:41 +0200 Original-Received: from localhost ([::1]:37534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nf2Gt-0003Qj-OY for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Apr 2022 12:24:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51062) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nf2Fk-0002TN-42 for emacs-devel@gnu.org; Thu, 14 Apr 2022 12:23:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36266) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nf2Fj-0005K1-Pf; Thu, 14 Apr 2022 12:23:27 -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=xDBCIWuyGsIqFkMq79NPNhjcHrYYPcl9qNpZjQ+N9j8=; b=TctKWI5eTAfO Z7GFCOVW/F7an9vXgWtBSkzvLkDKno6jg5pjtY+Dt1W3QXAeyd1vRWBN8+/kKVqKwFW3uoyLKPfid cScli24NEnUz0wh1Bo4WO4po3YbNoxm9krG68K7InnQdi4VhLsv6uIdeNu1YNmDxZO7PWBGzxIQW9 TFeFKtyycW3VYj8hbySxSgOsQZRs7s04CJQVtP6bCYiLinM1AFsygZPdMQbdssVSLAFaCdPlLMcI8 YvRiKo7aHwJYLHHCoGkxPg1M6vC3X8QVW1lv56iXADNKgOfgJJXsFcYDVZVOrt4fuxRl+KtA5/6Gw KHJ7bifLZIBwdF1D+rGkiQ==; Original-Received: from [87.69.77.57] (port=3512 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 1nf2Fj-0001TK-8t; Thu, 14 Apr 2022 12:23:27 -0400 In-Reply-To: <87czhjk5h7.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 14 Apr 2022 18:13:56 +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:288406 Archived-At: > From: Lars Ingebrigtsen > Cc: emacs-devel@gnu.org > Date: Thu, 14 Apr 2022 18:13:56 +0200 > > Eli Zaretskii writes: > > > But the result should be a face, right? > > It could be a face, but not necessarily. Dynamically creating an SVG > with a different foreground colour depending on the frame, for instance. Are there any other examples besides the background of SVG? Because the latter is AFAIR very special, and we can now handle it through faces as well. So the question is: do we need to do this outside of the faces realm? I cannot think of any other case where we use colors not via faces. > > 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? > > defface is easy enough to use if you want to create a face, but here the > interface we're presenting the user with is tied to colours, not faces. Interactively or non-interactively? Anyway, colors in Emacs are face attributes.