From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#41544: 26.3; Possible incorrect results from color-distance Date: Sat, 22 Aug 2020 15:22:59 +0200 Message-ID: <87blj2olvw.fsf@gnus.org> References: <5C4A633D-8222-4439-BE37-9B8674F1DA6D@acm.org> <020DE875-14A8-457A-9AE4-AA0925DB8997@acm.org> <83img48ffx.fsf@gnu.org> <83bllw82xt.fsf@gnu.org> <1B0F31C8-1E11-4527-A053-DD2DE8235F58@acm.org> <83wo4g5hz6.fsf@gnu.org> <49B7D7B5-D9E3-4E97-A749-CF5E8D8EE2C6@acm.org> <83mu5b5573.fsf@gnu.org> <83lfku69q2.fsf@gnu.org> <87eeo4m5kd.fsf@gnus.org> <83d03of3pf.fsf@gnu.org> <87blj8kpsr.fsf@gnus.org> <838secf1mq.fsf@gnu.org> <87zh6r7xlf.fsf@gnus.org> <837dtuelhr.fsf@gnu.org> <87sgciznhy.fsf@gnus.org> <83sgcid0ap.fsf@gnu.org> <87tuwxwjkr.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21461"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 41544@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 22 15:24:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k9TVB-0005SU-Sc for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Aug 2020 15:24:09 +0200 Original-Received: from localhost ([::1]:40134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k9TVA-0001os-GV for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Aug 2020 09:24:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9TV4-0001oa-Ik for bug-gnu-emacs@gnu.org; Sat, 22 Aug 2020 09:24:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37552) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k9TV4-0004pX-9Z for bug-gnu-emacs@gnu.org; Sat, 22 Aug 2020 09:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k9TV4-0001V0-5H for bug-gnu-emacs@gnu.org; Sat, 22 Aug 2020 09:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Aug 2020 13:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41544 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41544-submit@debbugs.gnu.org id=B41544.15981025995710 (code B ref 41544); Sat, 22 Aug 2020 13:24:02 +0000 Original-Received: (at 41544) by debbugs.gnu.org; 22 Aug 2020 13:23:19 +0000 Original-Received: from localhost ([127.0.0.1]:49098 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9TUM-0001U1-Td for submit@debbugs.gnu.org; Sat, 22 Aug 2020 09:23:19 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:35388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9TUJ-0001Tl-7x for 41544@debbugs.gnu.org; Sat, 22 Aug 2020 09:23:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=l/JLnToCjk0Ply/azcdGT2GpA0VMPj2t6aYnteWHzns=; b=nhp1g1R60d8kMhztlbc2i5nSoO 3M494scZI9A5eFahnYwTbN5PR08FsXO6/iC+5a0J1J6reRgK3pJKSC1KXolgIW+vnfgOnbNUpPAQQ w9Qw7Z9nC62mS0QwMwG+vAYTR5GA1kL28jd5KvPtw7bpaYCM0rnj7mB/nVWnz7CtmhAo=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k9TU4-0007nA-LZ; Sat, 22 Aug 2020 15:23:08 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEVccW83UphDNkGE nJZukpcXFBC0YhzblTz///9CV3QPAAAAAWJLR0QIht6VegAAAAd0SU1FB+QIFg0BJ7DKp88AAAGr SURBVDjLdZNNT8MwDIa9Usp12y/YDN150IldK2pxRhXdeapYckVIJH8f20k/1hVraxU/evMmrg0w G4slbLer1VYeHOvw4oAEVrNR7BWs43I9gOd5sC5e/tmqWghYdmdZLnih3vwDSJpx1JzJjHU3oHki MsZ6BvfXYENkjZkBH0RHBUl+7VETlQryCUBiE/aYCNRDwdskX6cRgCp2xkQlWxC9MkhL5Lz13owU Akp22RnvvWsHReblHpDwlkLwBmg+Sj46D7n6jrMM2+609B6AFFPq5gQ8CqAAgJPMvM+btqkUHANA BnKy/OQ+i4OAqleIh79Yd1cUKsn4Hgo0WuMKCRZVkA7AGf+tQPYCEhAEvN05CoiCh3cBuE2niMCG mtjfulLJoQfRYwN6pKpTZLGKBiDNa8R0AEqM+eLLYo12FiwQbRpBMOFyncsEN7weQLieMyUicjFo BJz+MW8QQ2eXasIfxAq49G0Eh6DJ5Ht4k98AbRT/00xBclL/UbtCofmmlo81bmMFOlOIVz0M+5tZ iyADaGZBbPd+Cnik+KFgMlDspeBhMps1V0XAH3m3GhFuKFUXAAAAJXRFWHRkYXRlOmNyZWF0ZQAy MDIwLTA4LTIyVDEzOjAxOjM5KzAwOjAwgrFqZQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMC0wOC0y MlQxMzowMTozOSswMDowMPPs0tkAAAAASUVORK5CYII= X-Now-Playing: Lizzy Mercier Descloux's _Press Color_: "Aya Mood" In-Reply-To: ("Mattias =?UTF-8?Q?Engdeg=C3=A5rd?="'s message of "Fri, 21 Aug 2020 13:32:14 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:185940 Archived-At: Mattias Engdeg=C3=A5rd writes: > Suppose we add standard-colour-darkness-predicate, say, with > color-dark-p being the default and (r+b+g)/3<0.6 the 'traditional' > option (or the default, if you prefer). How would the effects of that > choice be explained to the user? > > A difference is only visible when: > > 1. a face sensitive to the background mode is used (many standard > faces are), and > 2. a background colour used that is judged differently by the > available predicates > > Most reasonable backgrounds are either too light or too dark to pass > the latter criterion, but people's idea of what is reasonable > varies. For instance, black-on-green text is somewhat readable, but > > emacs -bg green -fg black > > will give mostly bad default faces (for instance, the minibuffer > prompt is almost invisible). With color-dark-p it becomes workable > (attached diff). I think that's a perfectly good explanation. Could perhaps be shortened a bit in the doc string. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no