[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tweaking the output of `C-h b'
From: |
Eli Zaretskii |
Subject: |
Re: Tweaking the output of `C-h b' |
Date: |
Mon, 01 Nov 2021 16:38:27 +0200 |
> From: Kévin Le Gouguec <kevin.legouguec@gmail.com>
> Cc: larsi@gnus.org, jonas@bernoul.li, monnier@iro.umontreal.ca,
> emacs-devel@gnu.org
> Date: Mon, 01 Nov 2021 15:26:30 +0100
>
> >> The UI elements (chevrons) are similar, yes; IIUC the main difference is
> >> that magit-section uses fringe bitmaps, while Customize uses SVG
> >> buttons.
> >>
> >> As for features, AFAICT:
> >>
> >> - magit-section is a reimplementation of outline-minor-mode which does
> >> not rely on regexps to delimit sections: it supports arbitrary nesting
> >> of subsections, and provides commands for visibility cycling and node
> >> navigation (see magit-section-mode-map).
> >>
> >> - Meanwhile, Customize buffers "merely" provide ways to (un)fold single
> >> entities (user options) and jump to the previous/next buttons (which
> >> could be enough for the purposes of C-h b).
> >>
> >> (I hope my comparison is accurate; if I'm being unfair to either library
> >> I'd love to stand corrected)
> >
> > I'm not sure we are talking about the same thing: I meant the
> > Customize Group buffers, where you can expand and collapse individual
> > options that belong to the group.
>
> Mmm, I think we are? See attached screenshot, with UI elements circled
> in red:
>
> - on the left, a Customize group buffer, with "Outline 1" expanded, and
> other options collapsed;
>
> - on the right, a magit-revision buffer, with most sections expanded,
> except for lisp/help.el's subsections (diff hunks), which are
> collapsed.
>
> (Note that nothing indicates visually that the collapsed hunks are
> subsections of the "modified lisp/help.el" section, unfortunately)
Then I think what we have in Custom is better, and it has the problems
I mentioned in my other mail taken care of. Why should we invent yet
another set of "widgets" for Help buffers?