all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Lars Ingebrigtsen <larsi@gnus.org>, Juri Linkov <juri@linkov.net>
Cc: 15427@debbugs.gnu.org
Subject: bug#15427: 24.3.50; `customize-face' in Customize, show `Background' attribute using background
Date: Thu, 15 Aug 2019 17:06:15 -0700 (PDT)	[thread overview]
Message-ID: <78b6df86-853e-4e54-8e8f-38dfde0f6392@default> (raw)
In-Reply-To: <87sgq2t2y9.fsf@mouse.gnus.org>

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
		    (widget-value widget)
		  (error (widget-get widget :value)))))
    (if (color-defined-p value)
	(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.





      reply	other threads:[~2019-08-16  0:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-20 17:04 bug#15427: 24.3.50; `customize-face' in Customize, show `Background' attribute using background Drew Adams
2019-08-15  3:36 ` Lars Ingebrigtsen
2019-08-15  4:44   ` Drew Adams
2019-08-15 14:28   ` Eli Zaretskii
2019-08-15 18:47   ` Juri Linkov
2019-08-15 23:37     ` Lars Ingebrigtsen
2019-08-16  0:06       ` Drew Adams [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=78b6df86-853e-4e54-8e8f-38dfde0f6392@default \
    --to=drew.adams@oracle.com \
    --cc=15427@debbugs.gnu.org \
    --cc=juri@linkov.net \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.