From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Re: About the :distant-foreground face attribute Date: Tue, 14 Jan 2014 10:34:31 +0100 Message-ID: <52D504A7.80104@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> <83bnzmfjxe.fsf@gnu.org> <52D3E689.6050902@dancol.org> <8E16225F-53EF-498A-AB35-66EB9B33B859@swipnet.se> <52D43360.6050605@dancol.org> <9BD01B88-AF13-44DD-8DBE-4598BAC136DD@swipnet.se> <52D45C73.6090906@dancol.org> <52D4EBA9.8050802@swipnet.se> <52D4F2C2.8080800@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1389692110 16490 80.91.229.3 (14 Jan 2014 09:35:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jan 2014 09:35:10 +0000 (UTC) Cc: Eli Zaretskii , Chong Yidong , emacs-devel To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 14 10:35:16 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 1W30Ox-0003v2-Do for ged-emacs-devel@m.gmane.org; Tue, 14 Jan 2014 10:35:15 +0100 Original-Received: from localhost ([::1]:47266 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W30Ow-0008QV-UM for ged-emacs-devel@m.gmane.org; Tue, 14 Jan 2014 04:35:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W30On-0008NH-KU for emacs-devel@gnu.org; Tue, 14 Jan 2014 04:35:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W30Of-0007SG-Hi for emacs-devel@gnu.org; Tue, 14 Jan 2014 04:35:05 -0500 Original-Received: from mailfe07.swip.net ([212.247.154.193]:42265 helo=swip.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W30ON-0007PN-ER; Tue, 14 Jan 2014 04:34:39 -0500 X-T2-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50 Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe07.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 468084687; Tue, 14 Jan 2014 10:34:35 +0100 Original-Received: from jdvpro.hq.ismobile.com (unknown [176.57.193.190]) (Authenticated sender: jhd) by hosdjarv.se (Postfix) with ESMTPSA id 872411A0105; Tue, 14 Jan 2014 09:34:35 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 In-Reply-To: <52D4F2C2.8080800@dancol.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 212.247.154.193 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:168343 Archived-At: Daniel Colascione skrev 2014-01-14 09:18: > On 01/13/2014 11:47 PM, Jan D. wrote: >> Your mailer does not quote replies properly, which is distracting. Can >> you fix that? > > It looks fine to me. It seems to quote only the first line, and not subsequent lines. You can easily see this in the web archive for emacs-devel. >> >> Given the use case at hand, we know for a fact that the background is >> the region background, so I don't understand why a calculated foreground >> is needed. Just pick one that matches the background. >> There might be other use cases where a calculated foreground makes >> sense, but my imagination fails me here. > > Calculated foreground colors look better: they resemble the font-lock > colors on which they're based. For the region case, that would imply the possibility of different foregrounds for marked text, none which is the actual font-lock color. That is just confusing. Also, "look better" is just subjective, a theme designer should deside what looks best, not Emacs code. >> Again, I really don't see this use case. Do you have one? > > I just mentioned one. See my other email, the one where I laid out the > options for Emacs configuration defaults. That is not a use case. A use case describes what an actual user does and in what situation automatically calculates colors enters the picture. > >>> We should push policy to user customization when >>> possible instead of hardcoding policy in the logic of face attributes. >> >> I don't think we do that, users can still customize faces as they see >> fit. > > :distant-foreground has far too narrow a justification to warrant being > a face property by itself. Also, just an opinion, not based on some documented design rule in any Emacs or GNU document. IMHO :stipple is as narrow. Jan D.