From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: About the :distant-foreground face attribute Date: Wed, 08 Jan 2014 05:45:27 +0200 Message-ID: <83fvozf86g.fsf@gnu.org> References: <87bnzo9cja.fsf@gnu.org> <59B7E7FC-48D0-4737-B1BB-FFAC5BA9E07A@swipnet.se> <874n5f3162.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1389152755 15213 80.91.229.3 (8 Jan 2014 03:45:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jan 2014 03:45:55 +0000 (UTC) Cc: jan.h.d@swipnet.se, emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 08 04:46:01 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W0k5g-0005FQ-9x for ged-emacs-devel@m.gmane.org; Wed, 08 Jan 2014 04:46:00 +0100 Original-Received: from localhost ([::1]:44765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0k5f-0004om-UN for ged-emacs-devel@m.gmane.org; Tue, 07 Jan 2014 22:45:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0k5V-0004lo-1Y for emacs-devel@gnu.org; Tue, 07 Jan 2014 22:45:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0k5O-00037p-Kz for emacs-devel@gnu.org; Tue, 07 Jan 2014 22:45:48 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:48451) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0k5I-00036H-0M; Tue, 07 Jan 2014 22:45:36 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MZ200K00CMZFJ00@a-mtaout21.012.net.il>; Wed, 08 Jan 2014 05:45:34 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MZ200KTID3YFZ00@a-mtaout21.012.net.il>; Wed, 08 Jan 2014 05:45:34 +0200 (IST) In-reply-to: <874n5f3162.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:167701 Archived-At: > From: Chong Yidong > Date: Wed, 08 Jan 2014 05:57:41 +0800 > Cc: emacs-devel > > The feature does not fit well with the design of the rest of the > face-handling code. We already have a mechanism for checking to see > when to use a particular face: the DISPLAY element in a face spec. The > :distant-foreground face attribute, by its very existence, is redundant > with what the DISPLAY element was meant to do. This adds extra > complexity to the design, for no good reason. > > If you need to check for a background, the right thing would be to > extend the DISPLAY feature to do what you need. For example, a DISPLAY > element of `(background dark)' is used to test for a dark background. > Maybe what you want is to be able to specify a color in place of `dark', > which would mean a background close to that color. I don't understand this criticism. How is this attribute different from min-colors?