From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#15977: 24.3.50; enhancement request: `sample' for Customize colors should show fg & bg Date: Thu, 15 Aug 2019 06:56:06 -0700 (PDT) Message-ID: <0f1433d1-624b-43fa-ba31-ac66604eada8@default> References: <87mugb5f63.fsf@mouse.gnus.org> <43284881-3326-41a4-8217-adf4b5ad77e0@default> <3e105285-8c02-7d37-9e4e-70a7c869b96d@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="202516"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 15977@debbugs.gnu.org To: martin rudalics , Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 15 15:58:01 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hyGGO-000qUo-De for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Aug 2019 15:58:00 +0200 Original-Received: from localhost ([::1]:42138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hyGGN-0000UT-Cj for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Aug 2019 09:57:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50498) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hyGFU-0007pz-B3 for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2019 09:57:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hyGFS-0001yJ-4W for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2019 09:57:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43261) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hyGFS-0001yE-0u for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2019 09:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hyGFR-0007Dc-Nk for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2019 09:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Aug 2019 13:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15977 X-GNU-PR-Package: emacs Original-Received: via spool by 15977-submit@debbugs.gnu.org id=B15977.156587737827717 (code B ref 15977); Thu, 15 Aug 2019 13:57:01 +0000 Original-Received: (at 15977) by debbugs.gnu.org; 15 Aug 2019 13:56:18 +0000 Original-Received: from localhost ([127.0.0.1]:52082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyGEj-0007Cz-Sz for submit@debbugs.gnu.org; Thu, 15 Aug 2019 09:56:18 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:38810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyGEi-0007Cr-3P for 15977@debbugs.gnu.org; Thu, 15 Aug 2019 09:56:16 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x7FDs7Kf081644; Thu, 15 Aug 2019 13:56:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2019-08-05; bh=CEgkYEtq+NdxZg6Q4MEjLdELk/j8b7tH9wPld/pJZo4=; b=jqYd2AgSGADzhEvsZF+sjxur6eu/e3bLYsRp8meKW6zKoDTMJ8nt01C8QlW3WkSQwOld yWm0GXdAv9IM0DGH0J2ZKS+qzzjNqrQeYIF2+QMQ04yxXr+5q06Cho+KwgTjFmiG5UVa h1t5xXhUdnBDmXNaDljMXPq1YfV9QX6W+HUSKWpUlVhkN1kEn+w6zxm9eohj2TWVp3yw RDISRuy0YbgeGOL7d4VE2Iwtdt8gAMZTCfPjdACkiAiYOLirX87/L4EjUseqG/PxUcEQ Ed159hmxYx3HOcDfdaLSmUaFNPf/X+K7xZQkDic3pG5AGor7z2jGSHKdSl2O98T0xBcN rA== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2120.oracle.com with ESMTP id 2u9nvpjymw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 15 Aug 2019 13:56:10 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x7FDrP42072306; Thu, 15 Aug 2019 13:56:09 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 2ucgf11k89-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 15 Aug 2019 13:56:09 +0000 Original-Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x7FDu7eZ011150; Thu, 15 Aug 2019 13:56:07 GMT In-Reply-To: <3e105285-8c02-7d37-9e4e-70a7c869b96d@gmx.at> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4873.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9350 signatures=668684 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908150146 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9350 signatures=668684 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908150146 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:165089 Archived-At: > > Or, as the bug report suggested, show just the text > > "sample", but show half of it as foreground and half of > > it as background. >=20 > It might be a bit non-trivial to pick a suitable foreground color for > "sample" when showing the background but it sounds like a nice idea. Even with no attempt to do anything special (i.e., just using the frame background as the foreground color) it would be an improvement. And even when the text on the sample wouldn't be legible/visible (e.g. background swatch same as or similar to white default background) it would be useful. It's a _color_ sample - a simple (background) color swatch would be OK in all circumstances. It's just that if we can show its appearance for both foreground and background then that's a plus. FWIW, in my library palette.el I have code that optionally changes the cursor color to make it be the complement of the color of its current position. Yes, that's a little bit complicated, but it's doable. But in the case of this enhancement request we wouldn't really want the complement. Probably one of the functions added to color.el for dealing with color distance would be usable, to get a grayscale color that contrasts well with the background. Just one suggestion - but see above: just not worrying about this at all would be fine, IMO. All we need is a color swatch (just background, no text needed).