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

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Fri, 20 Sep 2013 17:06:01 UTC

Severity: wishlist

Found in version 24.3.50

Full log


Message #23 received at 15427 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>, Juri Linkov <juri <at> linkov.net>
Cc: 15427 <at> debbugs.gnu.org
Subject: RE: bug#15427: 24.3.50; `customize-face' in Customize, show
 `Background' attribute using background
Date: Thu, 15 Aug 2019 17:06:15 -0700 (PDT)
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.




This bug report was last modified 5 years and 303 days ago.

Previous Next


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