From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.devel Subject: Re: About the :distant-foreground face attribute Date: Thu, 09 Jan 2014 18:22:40 +0100 Message-ID: <87fvoxxe73.fsf@engster.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> <87bnzlyvwb.fsf@gnu.org> <83zjn5cch3.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1389288193 10415 80.91.229.3 (9 Jan 2014 17:23:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jan 2014 17:23:13 +0000 (UTC) Cc: Chong Yidong , 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 18:23:20 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 1W1JK8-00043l-5D for ged-emacs-devel@m.gmane.org; Thu, 09 Jan 2014 18:23:16 +0100 Original-Received: from localhost ([::1]:53250 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1JK7-0007ia-O6 for ged-emacs-devel@m.gmane.org; Thu, 09 Jan 2014 12:23:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1JJq-0007So-N7 for emacs-devel@gnu.org; Thu, 09 Jan 2014 12:23:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1JJi-0003xm-3p for emacs-devel@gnu.org; Thu, 09 Jan 2014 12:22:58 -0500 Original-Received: from randomsample.de ([5.45.97.173]:36641) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1JJh-0003u1-Dc; Thu, 09 Jan 2014 12:22:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From; bh=taRQgFG6GC3aa0tX9xRBKEl+hI/KrvnF8diAKUT2SEs=; b=jNjsSq9PYaAQBsRKubeukXU+sZ+TXXv7Wt/bjIehoyfzbnuCTdKqjw1yPtJspAfsnZlqNFtO0txyAD5svHFrKVJPkJ5nrKF2cPpPk3yaZqkDsZJ+iSAhcYw3ThMD4Wwk; Original-Received: from dslc-082-083-043-217.pools.arcor-ip.net ([82.83.43.217] helo=spaten) by randomsample.de with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1W1JJf-0007V7-Ln; Thu, 09 Jan 2014 18:22:47 +0100 In-Reply-To: <83zjn5cch3.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 09 Jan 2014 19:05:28 +0200") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) Mail-Followup-To: Eli Zaretskii , Chong Yidong , jan.h.d@swipnet.se, emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 5.45.97.173 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:167944 Archived-At: Eli Zaretskii writes: > The solution should be able to cope with the need to dynamically > decide which color is used as a foreground, based on the current > background. It also needs to support the possibility that a face will > want to force use of a specific fixed foreground color, regardless of > the background. (Jan, did I miss some additional requirements?) If > you can propose a cleaner solution that satisfies these requirements, > please do, and let's discuss that. I still wonder why it is necessary in the first place. >From my experience, editors usually simply drop font-lock when you mark text (at least Eclipse does that, and in gvim it seems to be configurable), and I think that is a good default. When you mark a region, you want to apply some kind of operation on it, after which the region will be gone and font lock is restored. If you really really want font-lock on a marked region, then you will have to choose a region background which will play well with your color theme. Introducing a new face attribute for such a small annoyance looks like overkill to me. However, I also don't feel very strong about this issue. -David