From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: About the :distant-foreground face attribute Date: Wed, 08 Jan 2014 17:52:22 +0800 Message-ID: <87fvoy7qcp.fsf@gnu.org> References: <87bnzo9cja.fsf@gnu.org> <59B7E7FC-48D0-4737-B1BB-FFAC5BA9E07A@swipnet.se> <874n5f3162.fsf@gnu.org> <83fvozf86g.fsf@gnu.org> <87r48javwe.fsf@gnu.org> <5AAF847C-97BF-4BB6-A0A6-CAE665D7523E@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1389174751 21360 80.91.229.3 (8 Jan 2014 09:52:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jan 2014 09:52:31 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel To: Jan =?utf-8?Q?Dj=C3=A4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 08 10:52:39 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 1W0poT-0000W8-J8 for ged-emacs-devel@m.gmane.org; Wed, 08 Jan 2014 10:52:37 +0100 Original-Received: from localhost ([::1]:45864 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0poS-0008Ew-FY for ged-emacs-devel@m.gmane.org; Wed, 08 Jan 2014 04:52:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0poK-0008EM-NR for emacs-devel@gnu.org; Wed, 08 Jan 2014 04:52:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0poF-0003eJ-D3 for emacs-devel@gnu.org; Wed, 08 Jan 2014 04:52:28 -0500 Original-Received: from mail-pb0-x22e.google.com ([2607:f8b0:400e:c01::22e]:47924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0poF-0003eD-59; Wed, 08 Jan 2014 04:52:23 -0500 Original-Received: by mail-pb0-f46.google.com with SMTP id md12so1360800pbc.5 for ; Wed, 08 Jan 2014 01:52:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=/ydtPMA2ko1Tlg78x621roHrsp5AdFCuAnSbvc++RSU=; b=0lV8zEQU4tqI069k/gv9fWab2IOUBehbhVBXRY77OOMMjnH1pfCvSpIPi5G68BrdC4 yusL1GWzBM8GoHjlEHcNpskyhO+LG8hv9WhLqA1Tq0i9+Oj6Bkbv8pBF/QMTGJq7E7Li Aij8Sj3QNezImjRLso4qBbmvoE3xpxcMvlRpuaIlKHWidOL4q5hn6fziP5PbkO9PqvQu 57POteTAWESWOXKhI8BzxDJfwG3OttXEu39neWzZGV3a3QxT1fRjzJ4HTosa7qY/5Iyh dw/p5d7N/qjWQMjKdNuhfYEj2qDaiGf9GaDINs2Oszp6M1ouatPHLCUBPRdPtxQghSVj ViAg== X-Received: by 10.66.197.135 with SMTP id iu7mr11363933pac.149.1389174741924; Wed, 08 Jan 2014 01:52:21 -0800 (PST) Original-Received: from tsparkle ([65.127.72.2]) by mx.google.com with ESMTPSA id ic7sm1064669pbc.29.2014.01.08.01.52.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jan 2014 01:52:21 -0800 (PST) In-Reply-To: <5AAF847C-97BF-4BB6-A0A6-CAE665D7523E@swipnet.se> ("Jan \=\?utf-8\?Q\?Dj\=C3\=A4rv\=22's\?\= message of "Wed, 8 Jan 2014 10:35:56 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c01::22e 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:167719 Archived-At: Jan Dj=C3=A4rv writes: > 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? The reason this feature was introduced was so that Emacs could get away with not using the specified *_foreground_color, and use the underlying face color instead. It is inconsistent to suddenly want to start honoring it. > 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. Yep. >> 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. Yep, not sure what your point is.