From: Lars Ingebrigtsen <larsi@gnus.org>
To: 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 16:37:50 -0700 [thread overview]
Message-ID: <87sgq2t2y9.fsf@mouse.gnus.org> (raw)
In-Reply-To: <875zmymfjj.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 15 Aug 2019 21:47:44 +0300")
Juri Linkov <juri@linkov.net> 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
next prev parent reply other threads:[~2019-08-15 23:37 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 [this message]
2019-08-16 0:06 ` Drew Adams
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sgq2t2y9.fsf@mouse.gnus.org \
--to=larsi@gnus.org \
--cc=15427@debbugs.gnu.org \
--cc=juri@linkov.net \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).