unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 43977@debbugs.gnu.org
Subject: bug#43977: 28.0.50; customize-face, default, checkboxes not aligned with fields
Date: Wed, 14 Oct 2020 08:18:09 +0300	[thread overview]
Message-ID: <20201014051809.GE30079@protected.rcdrun.com> (raw)
In-Reply-To: <87o8l5za1d.fsf@gnus.org>

* 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	other threads:[~2020-10-14  5:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-13 11:52 bug#43977: 28.0.50; customize-face, default, checkboxes not aligned with fields Jean Louis
2020-10-14  4:49 ` Lars Ingebrigtsen
2020-10-14  5:18   ` Jean Louis [this message]
2020-10-14  5:31     ` Lars Ingebrigtsen
2020-10-14  5:36       ` Jean Louis
2020-10-14  5:48         ` Lars Ingebrigtsen
2020-10-14  7:41   ` Andreas Schwab
2020-10-14  8:54     ` Eli Zaretskii
2020-10-14 12:00 ` Mauro Aranda
2020-10-14 15:12   ` Eli Zaretskii
2020-10-14 17:55     ` Mauro Aranda

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=20201014051809.GE30079@protected.rcdrun.com \
    --to=bugs@gnu.support \
    --cc=43977@debbugs.gnu.org \
    --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 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).