From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: About the :distant-foreground face attribute Date: Wed, 8 Jan 2014 10:35:56 +0100 Message-ID: <5AAF847C-97BF-4BB6-A0A6-CAE665D7523E@swipnet.se> References: <87bnzo9cja.fsf@gnu.org> <59B7E7FC-48D0-4737-B1BB-FFAC5BA9E07A@swipnet.se> <874n5f3162.fsf@gnu.org> <83fvozf86g.fsf@gnu.org> <87r48javwe.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1389173780 9849 80.91.229.3 (8 Jan 2014 09:36:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jan 2014 09:36:20 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 08 10:36:26 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 1W0pYn-0001FK-TO for ged-emacs-devel@m.gmane.org; Wed, 08 Jan 2014 10:36:26 +0100 Original-Received: from localhost ([::1]:45790 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0pYn-0004Vw-H3 for ged-emacs-devel@m.gmane.org; Wed, 08 Jan 2014 04:36:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0pYf-0004UT-Ua for emacs-devel@gnu.org; Wed, 08 Jan 2014 04:36:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0pYZ-0006Od-Te for emacs-devel@gnu.org; Wed, 08 Jan 2014 04:36:17 -0500 Original-Received: from mailfe01.swip.net ([212.247.154.1]:47195 helo=swip.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0pYN-0006MN-I9; Wed, 08 Jan 2014 04:35:59 -0500 X-T2-Spam-Status: No, hits=0.0 required=5.0 Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 470043028; Wed, 08 Jan 2014 10:35:57 +0100 In-Reply-To: <87r48javwe.fsf@gnu.org> X-Mailer: Apple Mail (2.1827) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 212.247.154.1 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:167717 Archived-At: Hi. 8 jan 2014 kl. 06:24 skrev Chong Yidong : > Change the feature so it applies to all faces, but in a configurable > way. Introduce a new Lisp variable, `face-minimum-contrast', which > specifies the minimum allowed contrast between the background and > foreground of any face (or nil, which means to disable the feature). = If > the contrast of a face is lower than specified, the foreground color = is > adjusted (say, by changing its V component) to conform to the minimum > contrast. >=20 On Gtk and NS the region color to use is in that case specified by the = system and should not be generated by modifying a color component. How = do you specify that? Also, it isn't the contrast between the background and the foreground of = a face, but the contrast between the background and foreground to be = rendered, which comes from different faces in the case at hand. > This would avoid having to introduce a :distant-foreground attribute = for > all faces, only to use that attribute for just one face (`region') and > for one special purpose (to cope with the GTK selection color). It > would handle the generic class of problems involving text becoming > illegible, such as due to bad themes. distant-foreground can be used on any face, it just isn't. Jan D.