GNU bug report logs - #15427
24.3.50; `customize-face' in Customize, show `Background' attribute using background

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Drew Adams <drew.adams@HIDDEN>; dated Fri, 20 Sep 2013 17:06:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 15427 <at> debbugs.gnu.org:


Received: (at 15427) by debbugs.gnu.org; 16 Aug 2019 00:06:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 15 20:06:27 2019
Received: from localhost ([127.0.0.1]:52707 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hyPlC-0002sK-QR
	for submit <at> debbugs.gnu.org; Thu, 15 Aug 2019 20:06:27 -0400
Received: from aserp2120.oracle.com ([141.146.126.78]:41932)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1hyPlB-0002s5-9X
 for 15427 <at> debbugs.gnu.org; Thu, 15 Aug 2019 20:06:25 -0400
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 x7G04VAW005956;
 Fri, 16 Aug 2019 00:06:18 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=KT0swinoZchP6dItGPek23F+HYjzShad3XYY5FbKCms=;
 b=iS5CcR8EtqSTYwT2cb0WlQLNlzuhumkq2BPoDt/ONVadlmNNIny/VPSRiqUCQByB9DuA
 l5p4VY87MnFq459kVcehVOqv8XkNRm+8thdQU76/npDJLKKwAItxX3LJ5paU7AiEs+xb
 7J2npNPO9OO8C8Wovoa7kUch8M1J2Nk2BF1baBavUA0vHVzv3fSkxq8ryjEMy1y+nYSJ
 ybhhcHQzD2ZSUB5sxySe8oHy3GyNIX2DSluWAWNi1EvRqmy0EUikaC9KkERJpKkZnP9S
 LqT0xp61dt/6CJmLhL4DdPrVmvVdVTnpp5UOtfhkDOxBekOWvcYzmm7jkeBYXKolqBoe IA== 
Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79])
 by aserp2120.oracle.com with ESMTP id 2u9nvpnre5-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Fri, 16 Aug 2019 00:06:18 +0000
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 x7FNwkWE059509;
 Fri, 16 Aug 2019 00:06:18 GMT
Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235])
 by userp3020.oracle.com with ESMTP id 2udgqfh9m3-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Fri, 16 Aug 2019 00:06:17 +0000
Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25])
 by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x7G06GFd030828;
 Fri, 16 Aug 2019 00:06:16 GMT
MIME-Version: 1.0
Message-ID: <78b6df86-853e-4e54-8e8f-38dfde0f6392@default>
Date: Thu, 15 Aug 2019 17:06:15 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>, Juri Linkov <juri@HIDDEN>
Subject: RE: bug#15427: 24.3.50; `customize-face' in Customize, show
 `Background' attribute using background
References: <c6080c85-fb9c-484f-854c-ed8db6555aad@default>
 <87k1bf3xsi.fsf@HIDDEN> <875zmymfjj.fsf@HIDDEN>
 <87sgq2t2y9.fsf@HIDDEN>
In-Reply-To: <87sgq2t2y9.fsf@HIDDEN>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1  (1003210) [OL
 16.0.4873.0 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
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=815
 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1
 engine=8.0.1-1906280000 definitions=main-1908150231
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=885 adultscore=0
 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000
 definitions=main-1908150232
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 15427
Cc: 15427 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

FWIW, I agree about the widget and custom code.
And it's doc is not super helpful.

(defun widget-color-sample-face-get (widget)
  (let* ((value (condition-case nil
=09=09    (widget-value widget)
=09=09  (error (widget-get widget :value)))))
    (if (color-defined-p value)
=09(list (cons 'background-color value))
      'default)))

But I think, as said in the enhancement
request, that it's good to show the
effect of the color BOTH as a foreground
and as a background.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#15427; Package emacs. Full text available.

Message received at 15427 <at> debbugs.gnu.org:


Received: (at 15427) by debbugs.gnu.org; 15 Aug 2019 23:38:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 15 19:38:02 2019
Received: from localhost ([127.0.0.1]:52664 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hyPJi-0008TH-Bb
	for submit <at> debbugs.gnu.org; Thu, 15 Aug 2019 19:38:02 -0400
Received: from quimby.gnus.org ([80.91.231.51]:49200)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1hyPJg-0008Sr-G1
 for 15427 <at> debbugs.gnu.org; Thu, 15 Aug 2019 19:38:01 -0400
Received: from [50.225.213.182] (helo=sandy)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1hyPJa-00085J-Oz; Fri, 16 Aug 2019 01:37:57 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#15427: 24.3.50; `customize-face' in Customize, show
 `Background' attribute using background
References: <c6080c85-fb9c-484f-854c-ed8db6555aad@default>
 <87k1bf3xsi.fsf@HIDDEN> <875zmymfjj.fsf@HIDDEN>
Date: Thu, 15 Aug 2019 16:37:50 -0700
In-Reply-To: <875zmymfjj.fsf@HIDDEN> (Juri Linkov's message of "Thu, 
 15 Aug 2019 21:47:44 +0300")
Message-ID: <87sgq2t2y9.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Juri Linkov <juri@HIDDEN> writes: > Using background
 colors
 is more helpful for users. I tried having a peek at the code to see whether
 this would be an easy thing to fix, and it applies the colour here: 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 15427
Cc: 15427 <at> debbugs.gnu.org, Drew Adams <drew.adams@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Juri Linkov <juri@HIDDEN> writes:

> Using background colors is more helpful for users. 

I tried having a peek at the code to see whether this would be an easy
thing to fix, and it applies the colour here:

(defun widget-color-sample-face-get (widget)
  (let* ((value (condition-case nil
		    (widget-value widget)
		  (error (widget-get widget :value)))))
    (if (color-defined-p value)
	(list (cons 'foreground-color value))
      'default)))

But, as usual when dealing with widgets, I had to give up, because I can
never follow the calling logic (everything seems to happen somewhere
else), and I don't know how to inspect the widgets, either.

If somebody else wants to take a whack at it, be my guest.  It's
probably trivial if you know how widgets work.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#15427; Package emacs. Full text available.

Message received at 15427 <at> debbugs.gnu.org:


Received: (at 15427) by debbugs.gnu.org; 15 Aug 2019 18:53:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 15 14:53:33 2019
Received: from localhost ([127.0.0.1]:52447 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hyKsP-0004Mr-Ht
	for submit <at> debbugs.gnu.org; Thu, 15 Aug 2019 14:53:33 -0400
Received: from azure.elm.relay.mailchannels.net ([23.83.212.7]:6026)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1hyKsN-0004Me-JM
 for 15427 <at> debbugs.gnu.org; Thu, 15 Aug 2019 14:53:32 -0400
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id 2C7591A285E;
 Thu, 15 Aug 2019 18:53:30 +0000 (UTC)
Received: from pdx1-sub0-mail-a66.g.dreamhost.com
 (100-96-30-202.trex.outbound.svc.cluster.local [100.96.30.202])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id C415F1A1F20;
 Thu, 15 Aug 2019 18:53:28 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a66.g.dreamhost.com ([TEMPUNAVAIL].
 [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384)
 by 0.0.0.0:2500 (trex/5.17.5); Thu, 15 Aug 2019 18:53:30 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Chief-Decisive: 553214ce3f55c817_1565895209054_3743085302
X-MC-Loop-Signature: 1565895209054:3507828750
X-MC-Ingress-Time: 1565895209054
Received: from pdx1-sub0-mail-a66.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a66.g.dreamhost.com (Postfix) with ESMTP id A4A8E84B3C;
 Thu, 15 Aug 2019 11:53:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc
 :subject:references:date:in-reply-to:message-id:mime-version
 :content-type; s=linkov.net; bh=B1RcMElf7+y94IsiqytLOC11FZs=; b=
 CHOlJ2qEyDEv9okHbikunYV3pGszXCFboZKR+lR/dmfOVSTJHUp50sNExBNq05OM
 FqWXrxmsweGEQKUO59PF1dJNjMig0zp6HaBbdLv7s6kBat68eF8fzVMpd/XlGw4C
 pIWqNy1X4GqyrjnhiIs1ggQwa41NcLHSwaAWDy+r4qg=
Received: from mail.jurta.org (m91-129-109-163.cust.tele2.ee [91.129.109.163])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256
 bits)) (No client certificate requested)
 (Authenticated sender: jurta@HIDDEN)
 by pdx1-sub0-mail-a66.g.dreamhost.com (Postfix) with ESMTPSA id CB95084B44;
 Thu, 15 Aug 2019 11:53:20 -0700 (PDT)
X-DH-BACKEND: pdx1-sub0-mail-a66
From: Juri Linkov <juri@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#15427: 24.3.50; `customize-face' in Customize, show
 `Background' attribute using background
Organization: LINKOV.NET
References: <c6080c85-fb9c-484f-854c-ed8db6555aad@default>
 <87k1bf3xsi.fsf@HIDDEN>
Date: Thu, 15 Aug 2019 21:47:44 +0300
In-Reply-To: <87k1bf3xsi.fsf@HIDDEN> (Lars Ingebrigtsen's message of
 "Wed, 14 Aug 2019 20:36:13 -0700")
Message-ID: <875zmymfjj.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-VR-OUT-STATUS: OK
X-VR-OUT-SCORE: -100
X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrudefuddguddvlecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtledrudeifeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdelrdduieefpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheplhgrrhhsihesghhnuhhsrdhorhhgnecuvehluhhsthgvrhfuihiivgepvd
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 15427
Cc: 15427 <at> debbugs.gnu.org, Drew Adams <drew.adams@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>> emacs -Q
>> M-x customize-face lazy-highlight
>>
>> Attribute `Background' has its own `sample', which shows the color.
>> But it shows the color as a foreground (text).  Show it as the
>> background, instead.
>>
>> This is independent of the overall `sample' for the face as a whole.
>> It's just more helpful to show the background color choice as a
>> background.
>
> There's a whole bunch of things that can have a colour when customising
> a face -- like stipple background/foreground, overline, etc.  I don't
> know whether it makes sense to special-case just the (main) background
> colour...  but perhaps that does make sense, because it's a pretty
> common thing to customise.  And showing the colour as a background
> colour would give a more correct impressions.

Using background colors is more helpful for users.  Please see also
bug#33799 (set-foreground-color completion shows background colors).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#15427; Package emacs. Full text available.

Message received at 15427 <at> debbugs.gnu.org:


Received: (at 15427) by debbugs.gnu.org; 15 Aug 2019 14:28:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 15 10:28:33 2019
Received: from localhost ([127.0.0.1]:52110 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hyGjx-0001gs-ME
	for submit <at> debbugs.gnu.org; Thu, 15 Aug 2019 10:28:33 -0400
Received: from eggs.gnu.org ([209.51.188.92]:42860)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1hyGjv-0001ge-9f
 for 15427 <at> debbugs.gnu.org; Thu, 15 Aug 2019 10:28:31 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:48455)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1hyGjp-0005Sk-5H; Thu, 15 Aug 2019 10:28:25 -0400
Received: from [176.228.60.248] (port=1686 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1hyGjm-0005Tv-Sv; Thu, 15 Aug 2019 10:28:23 -0400
Date: Thu, 15 Aug 2019 17:28:16 +0300
Message-Id: <83lfvuqz9b.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-reply-to: <87k1bf3xsi.fsf@HIDDEN> (message from Lars Ingebrigtsen
 on Wed, 14 Aug 2019 20:36:13 -0700)
Subject: Re: bug#15427: 24.3.50;
 `customize-face' in Customize, show `Background' attribute using
 background
References: <c6080c85-fb9c-484f-854c-ed8db6555aad@default>
 <87k1bf3xsi.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 15427
Cc: 15427 <at> debbugs.gnu.org, drew.adams@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Lars Ingebrigtsen <larsi@HIDDEN>
> Date: Wed, 14 Aug 2019 20:36:13 -0700
> Cc: 15427 <at> debbugs.gnu.org
> 
> Anybody have an opinion here?

My opinion is that there's nothing wrong with showing the color as
foreground.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#15427; Package emacs. Full text available.

Message received at 15427 <at> debbugs.gnu.org:


Received: (at 15427) by debbugs.gnu.org; 15 Aug 2019 04:44:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 15 00:44:55 2019
Received: from localhost ([127.0.0.1]:50351 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hy7d8-000197-VJ
	for submit <at> debbugs.gnu.org; Thu, 15 Aug 2019 00:44:55 -0400
Received: from aserp2120.oracle.com ([141.146.126.78]:49422)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1hy7d7-00018v-Fr
 for 15427 <at> debbugs.gnu.org; Thu, 15 Aug 2019 00:44:53 -0400
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 x7F4iKuh037976;
 Thu, 15 Aug 2019 04:44:47 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=n0tmBbUUoSygXgbBIdY6lOcNvC5KMmG9/9xGmh7XpEQ=;
 b=kyErQcQjJ1Pp1/1Iza7ZIUbCoJXrXkp6cSU+2MpBUCsieD8km4tZVHJp26MKFfrfIaig
 ADZLx6GCfDVk8oqajTFMMZIXOopHV5aRuq6Kgz/W89AQjy6E59aHN1N5rSG/5Ihn18E9
 mvO+ovH3e54kNq25FA7SAGz4Tke+carUgUVfFl89BB9tZ5UWrqqlijAF/WMRzfnBvboU
 KkFkD1xG6RUS05qFetq/htk+gurcHFMANb3ZgsWAc6Bt/7w7lXK6MCWWlZ54iyVXCmQI
 RRUyqM/pw2Zv+dDcRWriK3tGJJM9cqoz2ILNkyp1OTCJ4rqHt2ZiUG1X59UVn4HuT+xz Iw== 
Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79])
 by aserp2120.oracle.com with ESMTP id 2u9nvpgsyb-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Thu, 15 Aug 2019 04:44:47 +0000
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 x7F4hCBh022898;
 Thu, 15 Aug 2019 04:44:46 GMT
Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236])
 by userp3020.oracle.com with ESMTP id 2ucgf0kn80-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Thu, 15 Aug 2019 04:44:46 +0000
Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8])
 by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x7F4ijlt007849;
 Thu, 15 Aug 2019 04:44:45 GMT
MIME-Version: 1.0
Message-ID: <d87f3b7b-c067-498e-bda8-a05565780f69@default>
Date: Wed, 14 Aug 2019 21:44:44 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: RE: bug#15427: 24.3.50; `customize-face' in Customize, show
 `Background' attribute using background
References: <c6080c85-fb9c-484f-854c-ed8db6555aad@default>
 <87k1bf3xsi.fsf@HIDDEN>
In-Reply-To: <87k1bf3xsi.fsf@HIDDEN>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1  (1003210) [OL
 16.0.4873.0 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
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=933
 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1
 engine=8.0.1-1906280000 definitions=main-1908150049
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=983 adultscore=0
 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000
 definitions=main-1908150049
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 15427
Cc: 15427 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> > emacs -Q
> > M-x customize-face lazy-highlight
> >
> > Attribute `Background' has its own `sample', which shows the color.
> > But it shows the color as a foreground (text).  Show it as the
> > background, instead.
> >
> > This is independent of the overall `sample' for the face as a whole.
> > It's just more helpful to show the background color choice as a
> > background.
>=20
> There's a whole bunch of things that can have a colour when customising
> a face -- like stipple background/foreground, overline, etc.  I don't
> know whether it makes sense to special-case just the (main) background
> colour...  but perhaps that does make sense, because it's a pretty
> common thing to customise.  And showing the colour as a background
> colour would give a more correct impressions.
>=20
> But might be confusing if that one thing behaved differently than the
> rest.
>=20
> Anybody have an opinion here?

It's _not_ about one thing behaving differently.

We show an overline, underline, foreground, etc.
attribute using the foreground, because they are,
well, in the foreground.

Attribute background is not.  Attribute background
should, well, show the color sample as background,
not as foreground.  (I would think that this is
obviously TRT to do.)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#15427; Package emacs. Full text available.

Message received at 15427 <at> debbugs.gnu.org:


Received: (at 15427) by debbugs.gnu.org; 15 Aug 2019 03:36:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 14 23:36:22 2019
Received: from localhost ([127.0.0.1]:50239 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hy6Yn-0007tn-SF
	for submit <at> debbugs.gnu.org; Wed, 14 Aug 2019 23:36:22 -0400
Received: from quimby.gnus.org ([80.91.231.51]:34002)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1hy6Ym-0007tf-6o
 for 15427 <at> debbugs.gnu.org; Wed, 14 Aug 2019 23:36:20 -0400
Received: from 24-104-73-23-ip-static.hfc.comcastbusiness.net ([24.104.73.23]
 helo=sandy)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1hy6Yi-0007LR-1n; Thu, 15 Aug 2019 05:36:18 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Drew Adams <drew.adams@HIDDEN>
Subject: Re: bug#15427: 24.3.50; `customize-face' in Customize, show
 `Background' attribute using background
References: <c6080c85-fb9c-484f-854c-ed8db6555aad@default>
Date: Wed, 14 Aug 2019 20:36:13 -0700
In-Reply-To: <c6080c85-fb9c-484f-854c-ed8db6555aad@default> (Drew Adams's
 message of "Fri, 20 Sep 2013 10:04:31 -0700 (PDT)")
Message-ID: <87k1bf3xsi.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Drew Adams <drew.adams@HIDDEN> writes: > emacs -Q > M-x
 customize-face lazy-highlight > > Attribute `Background' has its own `sample', 
 which shows the color. > But it shows the color as a foreground (text). Show
 it as the > background, ins [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 15427
Cc: 15427 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Drew Adams <drew.adams@HIDDEN> writes:

> emacs -Q
> M-x customize-face lazy-highlight
>
> Attribute `Background' has its own `sample', which shows the color.
> But it shows the color as a foreground (text).  Show it as the
> background, instead.
>
> This is independent of the overall `sample' for the face as a whole.
> It's just more helpful to show the background color choice as a
> background.

There's a whole bunch of things that can have a colour when customising
a face -- like stipple background/foreground, overline, etc.  I don't
know whether it makes sense to special-case just the (main) background
colour...  but perhaps that does make sense, because it's a pretty
common thing to customise.  And showing the colour as a background
colour would give a more correct impressions.

But might be confusing if that one thing behaved differently than the
rest.

Anybody have an opinion here?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#15427; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Sep 2013 17:05:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 20 13:05:12 2013
Received: from localhost ([127.0.0.1]:51565 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VN48l-0002vN-Gk
	for submit <at> debbugs.gnu.org; Fri, 20 Sep 2013 13:05:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50111)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <drew.adams@HIDDEN>) id 1VN48h-0002v9-KN
 for submit <at> debbugs.gnu.org; Fri, 20 Sep 2013 13:05:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1VN48S-00023X-5s
 for submit <at> debbugs.gnu.org; Fri, 20 Sep 2013 13:05:02 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:40381)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1VN48S-00023S-2g
 for submit <at> debbugs.gnu.org; Fri, 20 Sep 2013 13:04:52 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:51756)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1VN48J-0002J9-8A
 for bug-gnu-emacs@HIDDEN; Fri, 20 Sep 2013 13:04:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1VN48A-00021Z-M0
 for bug-gnu-emacs@HIDDEN; Fri, 20 Sep 2013 13:04:43 -0400
Received: from userp1040.oracle.com ([156.151.31.81]:20294)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1VN48A-00021M-DQ
 for bug-gnu-emacs@HIDDEN; Fri, 20 Sep 2013 13:04:34 -0400
Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238])
 by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id
 r8KH4WnB015003
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
 for <bug-gnu-emacs@HIDDEN>; Fri, 20 Sep 2013 17:04:33 GMT
Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230])
 by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r8KH4WB2006059
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
 for <bug-gnu-emacs@HIDDEN>; Fri, 20 Sep 2013 17:04:32 GMT
Received: from abhmt120.oracle.com (abhmt120.oracle.com [141.146.116.72])
 by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r8KH4WWT027996
 for <bug-gnu-emacs@HIDDEN>; Fri, 20 Sep 2013 17:04:32 GMT
MIME-Version: 1.0
Message-ID: <c6080c85-fb9c-484f-854c-ed8db6555aad@default>
Date: Fri, 20 Sep 2013 10:04:31 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.3.50; `customize-face' in Customize, show `Background' attribute
 using background
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8  (707110) [OL
 12.0.6680.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Source-IP: acsinet22.oracle.com [141.146.126.238]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic]
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

emacs -Q
M-x customize-face lazy-highlight

Attribute `Background' has its own `sample', which shows the color.
But it shows the color as a foreground (text).  Show it as the
background, instead.

This is independent of the overall `sample' for the face as a whole.
It's just more helpful to show the background color choice as a
background.



In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
 of 2013-08-31 on ODIEONE
Bzr revision: 114088 rgm@HIDDEN
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=3D/c/Devel/emacs/binary --enable-checking=3Dyes,glyphs
 'CFLAGS=3D-O0 -g3' LDFLAGS=3D-Lc:/Devel/emacs/lib
 CPPFLAGS=3D-Ic:/Devel/emacs/include'




Acknowledgement sent to Drew Adams <drew.adams@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#15427; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.