From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: About the :distant-foreground face attribute Date: Wed, 8 Jan 2014 09:08:34 -0800 (PST) Message-ID: <0f1b1208-af97-4aa9-b0f6-234d5992a9f3@default> 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> <87fvoy7qcp.fsf@gnu.org> <874n5ebka3.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1389200952 22569 80.91.229.3 (8 Jan 2014 17:09:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jan 2014 17:09:12 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel To: =?iso-8859-1?B?SmFuIERq5HJ2?= , Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 08 18:09:14 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 1W0wcw-0007HV-5f for ged-emacs-devel@m.gmane.org; Wed, 08 Jan 2014 18:09:10 +0100 Original-Received: from localhost ([::1]:48000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0wcv-0000rm-N1 for ged-emacs-devel@m.gmane.org; Wed, 08 Jan 2014 12:09:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0wcj-0000ql-CN for emacs-devel@gnu.org; Wed, 08 Jan 2014 12:09:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0wca-000385-Ir for emacs-devel@gnu.org; Wed, 08 Jan 2014 12:08:57 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:51048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0wcQ-00032q-Sg; Wed, 08 Jan 2014 12:08:39 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id s08H8afY010579 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 8 Jan 2014 17:08:37 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s08H8ZNd016606 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 8 Jan 2014 17:08:35 GMT Original-Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s08H8YnC004236; Wed, 8 Jan 2014 17:08:34 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 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:167752 Archived-At: > 1) Font lock uses faces with specified fore- and background. > 2) When text is marked with the mouse, the region face is applied on > (overrides) the font lock face. As it should. > 3) If the region face blindly uses the foreground from the region > face (as per your suggestion), for example gtk_selection_fg_color, > font lock is lost. That is what bug 15668 is about. Font lock is not "lost". Font-lock highlighting is covered by the region highlighting. And that is what should happen. This "bug" should not have been "fixed", IMHO. This is what text selection highlighting is all about. A user needs to be able to see which text is highlighted - each selected char. And you should not assume that font-locking affects only foregrounds. Are you going to make the same "fix" for backgrounds also, so that selecting text lets font-locked (or otherwise highlighted) backgrounds show through the region highlighting? And if font locking highlights both the foreground and background of a character? Bingo - you cannot see which text you have selected. This kind of change seems so misguided. Hard to believe we've arrived here.