From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.ciao.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.bugs Subject: bug#34001: 26.1.90; :distant-foreground face property fails to work in most cases Date: Mon, 21 Jan 2019 18:09:39 -0500 Message-ID: <8fee11d3-aaad-2173-f05e-05c83a84dbb4@dancol.org> References: <87muntwrcx.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.org; posting-host="ciao.gmane.org:195.159.176.228"; logging-data="63953"; mail-complaints-to="usenet@ciao.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 Cc: Julien Danjou , 34001@debbugs.gnu.org To: "Basil L. Contovounesios" , Tina Russell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 22 00:15:47 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1glin8-000GWM-TU for geb-bug-gnu-emacs@m.gmane.org; Tue, 22 Jan 2019 00:15:43 +0100 Original-Received: from localhost ([127.0.0.1]:35771 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glin7-0001ua-RF for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jan 2019 18:15:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glimQ-0001Ln-PZ for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 18:14:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1glihf-0006Va-Ci for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 18:10:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41361) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1glihe-0006VI-QS for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 18:10:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1glihe-0004va-A9 for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 18:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Jan 2019 23:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34001 X-GNU-PR-Package: emacs Original-Received: via spool by 34001-submit@debbugs.gnu.org id=B34001.154811219518925 (code B ref 34001); Mon, 21 Jan 2019 23:10:02 +0000 Original-Received: (at 34001) by debbugs.gnu.org; 21 Jan 2019 23:09:55 +0000 Original-Received: from localhost ([127.0.0.1]:40642 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glihT-0004v8-Bf for submit@debbugs.gnu.org; Mon, 21 Jan 2019 18:09:55 -0500 Original-Received: from dancol.org ([96.126.100.184]:37838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glihR-0004uz-7h for 34001@debbugs.gnu.org; Mon, 21 Jan 2019 18:09:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=GlwuhyM2TBPzSLT7PKswPasuIoloTSe2fo8OKRM77kA=; b=dUvZdNtUUum/JcCe6THrKPfZ6mG//0WwdH6i20ui40AB6qXG5EFEq0Q6yqyjI6NAxcdzMKGMFvKVOF9rxayOOpNav88HfWZZ8uGaTK0kkODrTVAJy71QV24ZlpPjkkcmBhDirEEmYERyJcSctp8ckybI10DEp/ZxlkvrX/fUx/lEDStz+83rOrr1X0L8eB5HGgY2ExOtd7Y5nGMs3Kpxtvw2ft5TBM0hkIYNH5FJvJC0pLsUmKRPPevuivBiTBmrWZWuiVrwFS35O2XSQEIL9JPVyVxnqTsciAempEe1JKhovwqydYu3o2ZiM8aAzcQm9b/yj/zh8jVgDS+0v7bxKA==; Original-Received: from [2604:4080:1321:9a00:281a:fe2d:5d87:d563] by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1glihP-00074h-1s; Mon, 21 Jan 2019 15:09:47 -0800 In-Reply-To: <87muntwrcx.fsf@tcd.ie> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:154668 Archived-At: On 1/21/19 5:58 PM, Basil L. Contovounesios wrote: > Tina Russell writes: > >> I’m not the only one who’s noticed this; there’s a good StackExchange >> thread from 2015 here: >> https://emacs.stackexchange.com/questions/7982/ The author notes that >> there should be a user option to set the amount of “distance” (between >> foreground and background colors) that is required for >> distant-foreground to kick in > > It would be nice if any work in this area took into consideration > existing efforts by Julien Danjou (CCed) in lisp/net/shr-color.el > (see e.g. user options shr-color-visible-luminance-min and > shr-color-visible-distance-min and function shr-color-visible). > > For example, the library may end up either duplicating existing core > logic, or prove sufficiently useful that it is moved to a less > SHR-specific location (I'm just speculating). > >> , and adds that a good way to measure >> color distance in real-world circumstances is described here: >> http://web.mst.edu/~rhall/web_design/color_readability.html A commenter >> suggested that he file a bug, but I can’t find an Emacs bug report >> related to this issue, so I’m filing this now. > > FWIW, there has been some discussion of colour distances in bug#25525 > and bug#30295: > > https://debbugs.gnu.org/25525 > https://debbugs.gnu.org/30295 > I think I had a proposal a long time ago to just call into lisp during redisplay in order to compute the color composition.