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: Wed, 14 Aug 2019 21:33:22 -0700 (PDT) Message-ID: <43284881-3326-41a4-8217-adf4b5ad77e0@default> References: <87mugb5f63.fsf@mouse.gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="53971"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 15977@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 15 06:34:11 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 1hy7Sk-000Dwf-Qg for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Aug 2019 06:34:10 +0200 Original-Received: from localhost ([::1]:38338 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hy7Sj-0001w7-3y for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Aug 2019 00:34:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36974) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hy7Sc-0001vj-TU for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2019 00:34:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hy7Sb-0003j0-Sr for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2019 00:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41509) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hy7Sb-0003iq-OR for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2019 00:34:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hy7Sb-0000sv-Kb for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2019 00:34: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 04:34: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.15658436393393 (code B ref 15977); Thu, 15 Aug 2019 04:34:01 +0000 Original-Received: (at 15977) by debbugs.gnu.org; 15 Aug 2019 04:33:59 +0000 Original-Received: from localhost ([127.0.0.1]:50330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hy7SZ-0000sf-9r for submit@debbugs.gnu.org; Thu, 15 Aug 2019 00:33:59 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:44328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hy7SY-0000sR-0K for 15977@debbugs.gnu.org; Thu, 15 Aug 2019 00:33:58 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x7F4Xp59194505; Thu, 15 Aug 2019 04:33:52 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=2DWE2xLZq4b77uDNpVnDrwte/DlmDOWTsC8DNKtKFNQ=; b=m01BQce2kzthQ5Ay5wl7K1CjHDbhUh38W0/XJk+mI952t2SEUrPCwcK0XiRADw8Ht/2V R56rFBkEncALLFNrVMtbpjF3BDC6ntUmL5cKqNDgDaS59V10YhBegnmT9QaFUsy/QveH yOCk8FqcmQ/VljkeV2semyB+VM503ZYUngfQ+bT2nrVNfjvPSqOUZhUKZaXTss7gWm5Y 4CtZanFdIYiVGXXynp22Gnq9UirwJt2qL6SKkuCy8QYBGzJwayMUq7pBTINkd3t9oFzb gr9jPGdtBbMRECx5toV5fl/XbR6sUTynLQv0JwvLDNZ7s/qQTVUBYzQkpUdbKtaPu0cM HA== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 2u9nbtrq2s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 15 Aug 2019 04:33:52 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x7F4XjDw093917; Thu, 15 Aug 2019 04:33:51 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3020.oracle.com with ESMTP id 2ucpyryh2q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 15 Aug 2019 04:33:49 +0000 Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x7F4XN9t005195; Thu, 15 Aug 2019 04:33:23 GMT In-Reply-To: <87mugb5f63.fsf@mouse.gnus.org> 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=9349 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-1908150047 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9349 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=1011 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-1908150047 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:165039 Archived-At: > I'm not quite sure what you're referring to here -- do you have a > recipe for how to show Customize colours? emacs -Q (defcustom foo "Red" "Some foo" :type 'color :group 'convenience) M-x customize-option foo You see this: Hide Foo: Red Choose (sample) State : STANDARD. Some foo Groups: Convenience This uses the `color' widget, defined in `wid-edit.el' as follows: (define-widget 'color 'editable-field "Choose a color name (with sample)." :format "%{%t%}: %v (%{sample%})\n" :value-create 'widget-color-value-create :size 10 :tag "Color" :value "black" :completions (or facemenu-color-alist (defined-colors)) :sample-face-get 'widget-color-sample-face-get :notify 'widget-color-notify :action 'widget-color-action) In Customize The text "sample" (in parentheses) shows you what the color looks like when used as a foreground (face attribute). It does not show you what the color looks as a background (face attribute). This enhancement request asks that the color be shown as both foreground and background. For example, instead of a single "sample" that shows only foreground appearance, show both "foreground" and "background" text, with the color used as foreground and background, respectively. Or, as the bug report suggested, show just the text "sample", but show half of it as foreground and half of it as background. That's all.