bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#43977: 28.0.50; customize-face, default, checkboxes not aligned with


From: Andreas Schwab
Subject: bug#43977: 28.0.50; customize-face, default, checkboxes not aligned with fields
Date: Wed, 14 Oct 2020 09:41:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

On Okt 14 2020, Lars Ingebrigtsen wrote:

> (define-widget 'group 'default
>   "A widget which groups other widgets inside."
>   :convert-widget 'widget-types-convert-widget
>   :copy 'widget-types-copy
>   :format ":\n%v"
>
> But I have no idea how to override that in the context of a face
> definition.  Anybody?

diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 9c5d89f89f..4cdd7ac564 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -3205,6 +3205,7 @@ face attributes (as specified by a `default' defface 
entry)."
   :convert-widget 'custom-face-edit-convert-widget
   :args (mapcar (lambda (att)
                  (list 'group :inline t
+                       :format "%v"
                        :sibling-args (widget-get (nth 1 att) :sibling-args)
                        (list 'const :format "" :value (nth 0 att))
                        (nth 1 att)))

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





reply via email to

[Prev in Thread] Current Thread [Next in Thread]