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 22:49:56 +0800 Message-ID: <874n5ebka3.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> <87fvoy7qcp.fsf@gnu.org> 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 1389192607 10110 80.91.229.3 (8 Jan 2014 14:50:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jan 2014 14:50:07 +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 15:50:13 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 1W0uST-00024F-56 for ged-emacs-devel@m.gmane.org; Wed, 08 Jan 2014 15:50:13 +0100 Original-Received: from localhost ([::1]:47096 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0uSS-00049u-Qu for ged-emacs-devel@m.gmane.org; Wed, 08 Jan 2014 09:50:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0uSK-00046R-Or for emacs-devel@gnu.org; Wed, 08 Jan 2014 09:50:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0uSF-0003Tb-Ef for emacs-devel@gnu.org; Wed, 08 Jan 2014 09:50:04 -0500 Original-Received: from mail-pd0-x22d.google.com ([2607:f8b0:400e:c02::22d]:63796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0uSF-0003TL-6q; Wed, 08 Jan 2014 09:49:59 -0500 Original-Received: by mail-pd0-f173.google.com with SMTP id p10so1867932pdj.32 for ; Wed, 08 Jan 2014 06:49:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=yvNy7+YyDZ/0WvBBSfaJloFkln0Ou7O9nUmwhPm8GpM=; b=APfO0kv2rAQrouT+AstJEovqneo/Q1eyEFveDehA1V+yPnZ7Bbfup2FWkr04fuSmEh 250aiXZ+4ULs148x8n71hNPtaI3RZKXP3kW39eVM/DlOVS/9SM5gQbsBV6jsIC7e5L7/ ZWAh42FhnwP7XoBkaf5fEbZPxAwFSaHhPZht3ejFpSN1OxYSBnI3VL72le426CCKKEBm PqdDEY9r/tJHBFRZvAat6cnZeRZpHGs4mOnxdy8Z65vMkmkTLE3lpB1eSo/LXRYtL389 7qxUQSwTqSwlXtJv0mIj5rHbYTmQBrpVi05zbH47KBMogdABfBpEWFKLVnMmWV5k/vlg vozw== X-Received: by 10.66.4.226 with SMTP id n2mr13416288pan.84.1389192596579; Wed, 08 Jan 2014 06:49:56 -0800 (PST) Original-Received: from tsparkle ([65.127.72.2]) by mx.google.com with ESMTPSA id y9sm3687388pas.10.2014.01.08.06.49.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jan 2014 06:49:55 -0800 (PST) In-Reply-To: ("Jan \=\?utf-8\?Q\?Dj\=C3\=A4rv\=22's\?\= message of "Wed, 8 Jan 2014 11:10:57 +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:c02::22d 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:167729 Archived-At: Jan Dj=C3=A4rv writes: > Honoring what? Your statement makes no sense. I'm talking about the > fact that your proposal does not do what the current implementation > does. In your proposal, the foreground to use (distant foreground) > would be calculated by Emacs. In the current implementation, the > foreground to use is specified by the system (Gtk+/NS). How do you > specify that in your proposal? Why is the current behavior TRT? You are already choosing to ignore gtk_selection_fg_color under some (arbitrarily hard-coded) circumstances. So if you care about obeying gtk_selection_fg_color, why not just set it to :foreground? When gtk_selection_bg_color is in use, we might as well use gtk_selection_fg_color with it. Users who want a region background color that works properly with font lock might as well disable the GTK selection color stuff (it's unfortunate that it's the default, but oh well).