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#15977: 24.3.50; enhancement request: `sample' for Customize colors should show fg & bg Date: Wed, 26 Jan 2022 18:08:15 +0100 Message-ID: <87v8y6pgqo.fsf@gnus.org> References: <87mugb5f63.fsf@mouse.gnus.org> <43284881-3326-41a4-8217-adf4b5ad77e0@default> <87a7c9sydb.fsf@mouse.gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="382"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 15977@debbugs.gnu.org, Juri Linkov To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 26 18:23:44 2022 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 1nCm1I-000AS7-4T for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Jan 2022 18:23:44 +0100 Original-Received: from localhost ([::1]:34280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCm1G-0000mQ-PU for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Jan 2022 12:23:42 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCln4-0001aE-7Z for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2022 12:09:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60434) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nCln3-0000oa-T0 for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2022 12:09:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nCln3-0005ox-LL for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2022 12:09:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Jan 2022 17:09: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.164321690822330 (code B ref 15977); Wed, 26 Jan 2022 17:09:01 +0000 Original-Received: (at 15977) by debbugs.gnu.org; 26 Jan 2022 17:08:28 +0000 Original-Received: from localhost ([127.0.0.1]:53337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nClmW-0005o6-JE for submit@debbugs.gnu.org; Wed, 26 Jan 2022 12:08:28 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:49960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nClmV-0005ns-7H for 15977@debbugs.gnu.org; Wed, 26 Jan 2022 12:08:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: 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=I8PrOaoLiOLKDC2F226cYR9ZAT/QJRz6Z9MYk+ZDRU0=; b=VDLiZQvIw7qbLXC17FNgiRcfW2 lXJzKUj34oshITs+YfOl7mmqWcsnkQZ6Tt1PYc6TVYdxCqL980NXw1kBciDH7k99cq4Kr3gd8aY/O BOVyah0aoJq3ruH8MEEU2a4HzKuefQ2xLMevDxMBSD8L8M1c7xm99S8YfRaXJ1i2pgMQ=; Original-Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nClmK-00044f-2t; Wed, 26 Jan 2022 18:08:18 +0100 X-Now-Playing: Phew's _Phew_: "Doze" In-Reply-To: <87a7c9sydb.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Thu, 15 Aug 2019 18:16:48 -0700") 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:225293 Archived-At: Lars Ingebrigtsen writes: > Thanks for the recipe. Yes, I agree with you -- it would be better if > it also showed this colour as a background (i.e., block), which would > make it easier to determine whether to use the colour. And like Juri > says, it should probably be two samples, one as a foreground and one as > a background. I had a peek at this, and the sample faces come from here: (define-widget 'color 'editable-field "Choose a color name (with sample)." :format "%{%t%}: %v (%{sample%})\n" :value-create 'widget-color-value-create :size (1+ (apply #'max 13 ; Longest RGB hex string. (mapcar #'length (defined-colors)))) :tag "Color" :value "black" :completions (defined-colors) :sample-face-get 'widget-color-sample-face-get But of course, you can't have two samples in the :format, I think? So... you'd have to create... er... a sub widget? OK, I give up. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no