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: Jean Louis
Subject: bug#43977: 28.0.50; customize-face, default, checkboxes not aligned with fields
Date: Wed, 14 Oct 2020 08:18:09 +0300
User-agent: Mutt/1.14.0 (2020-05-02)

* Lars Ingebrigtsen <larsi@gnus.org> [2020-10-14 07:50]:
> Jean Louis <bugs@gnu.support> writes:
> 
> > I can see that check boxes in customize-face -> default, are not aligned
> > with fields.
> 
> [...]
> 
> > Hide Default face: [sample]
> >     State : STANDARD.
> >    Basic default face.
> >    [X] :
> >        Font Family: FreeMono
> 
> This looks correctly aligned, but I'm guessing you're referring to the
> newlines here?  And those do indeed look kinda superfluous.

To me this would look correctly aligned and displayed:

[X] Font Family: FreeMono

And finally why is there : before the field name, no need for it, it
is obvious that the checkbox belongs to the same line, however, it is
formatted that field text is not placed on the same line, no logic
there.

On console emacs -nw it looks same way degraded and confusing to se
something like

Try doing M-x customize-face RET bold RET

You will see

Hide Bold face: [sample]
    State : STANDARD.
   Basic bold face.
   [X] :
       Weight: Value Menu bold
   Show All Attributes

which is simply wrong, neither colon nor new line belongs there.

Now if I click on Show All Attributes, I get following list nicely
formatted, except the one line not being nicely formatted.

Hide Bold face: [sample]
    State : STANDARD.
   Basic bold face.
   [ ] Font Family: --
   [ ] Font Foundry: --
   [ ] Width: --
   [ ] Height: --
   [X] :
       Weight: Value Menu bold
   [ ] Slant: --
   [ ] Underline: --
   [ ] Overline: --
   [ ] Strike-through: --
   [ ] Box around text: --
   [ ] Inverse-video: --
   [ ] Foreground: --
   [ ] Distant Foreground: --
   [ ] Background: --
   [ ] Stipple: --
   [ ] Extend: --
   [ ] Inherit: --
   Hide Unused Attributes


> After digging into the widget code for what seems like hours, I finally
> found out what's inserting that newline (by adding a debug-on-entry on
> `insert', of course).  It's this:
> 
> (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?

Cannot you just remove the colon and new line?





reply via email to

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