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: Fri, 10 Jan 2014 00:15:00 +0800 Message-ID: <87bnzlyvwb.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> <83bnzmfjxe.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1389284119 22502 80.91.229.3 (9 Jan 2014 16:15:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jan 2014 16:15:19 +0000 (UTC) Cc: jan.h.d@swipnet.se, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 09 17:15: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 1W1IGT-0007kk-Kh for ged-emacs-devel@m.gmane.org; Thu, 09 Jan 2014 17:15:25 +0100 Original-Received: from localhost ([::1]:52774 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1IGT-0004gi-72 for ged-emacs-devel@m.gmane.org; Thu, 09 Jan 2014 11:15:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1IGL-0004Zt-6x for emacs-devel@gnu.org; Thu, 09 Jan 2014 11:15:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1IGF-0007Zp-Ft for emacs-devel@gnu.org; Thu, 09 Jan 2014 11:15:17 -0500 Original-Received: from mail-pb0-x229.google.com ([2607:f8b0:400e:c01::229]:52726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1IGF-0007Zc-8o; Thu, 09 Jan 2014 11:15:11 -0500 Original-Received: by mail-pb0-f41.google.com with SMTP id jt11so3199369pbb.28 for ; Thu, 09 Jan 2014 08:15:09 -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; bh=UNhEKnptaHEAU0tcK2MLqkHl2HjpFQZAx+g7zsq57g0=; b=VbSp+x4ymAM4dS9qXjDLpj1rF7D0DHQERcotHCHMN1kBYLxpWrS8Sdv/vZERtox3Ns 6tC6Q1SI6EI5AMdZ9UmvM7kUb7tDOnfeuShgR0oG4gVaSFVA5yRbGzbkRwpUKnT35cOQ Mdop7fbg50N7YWaumAuhRwxlMracNJ+aSHRxff3JqC7nzOVZA9I6zYFQAKwTev30gNgU 4bjk4YUt1a0JFgrWr++8fPFBNqdjZASV75nzvG0+7A8da7J2MSXssujn6GYu8ZIJ1lN3 siqD8hr+/GvK4z7fcWCTTnEm0GdNnT7uOjM7qF5jNuPqRNcJjPSqSixdPFOLkX1qtv/y eF7g== X-Received: by 10.66.221.103 with SMTP id qd7mr4665685pac.44.1389284109776; Thu, 09 Jan 2014 08:15:09 -0800 (PST) Original-Received: from tsparkle ([65.127.72.2]) by mx.google.com with ESMTPSA id jn12sm10950511pbd.37.2014.01.09.08.15.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jan 2014 08:15:08 -0800 (PST) In-Reply-To: <83bnzmfjxe.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 08 Jan 2014 19:43:57 +0200") 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::229 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:167930 Archived-At: Eli Zaretskii writes: >> The analogy would be if there was a :low-color-foreground face attribute >> which would override :foreground on low-color displays. That would be >> ugly, as I hope you agree. > > I'm not sure I see the ugliness, please elaborate. One face attribute should govern one aspect of how the face is displayed. In some cases, it may be hard to avoid having multiple attributes with overlapping effects, but the results are not pretty. For example, the interactions between :family, :foundry and :font have been a source of annoyance over the years. Introducing another such situation should, in my view, be avoided as far as possible. An example of a face attribute that handles things right is the :height attribute. An absolute height is given by an integer, while a relative height can be specified by a float. Allowing both in a single attribute is good, because absolute height and the relative height are just different ways to specify height. We don't have a :height and a separate :relative-height attribute. The DISPLAY spec is another example of avoiding adding extra face attributes---it allows different sets of face attributes for different display conditions. If I cannot convince anyone that there is a problem here, then forget it. I don't have time to keep arguing, so I'll just stop working on this stuff.