From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Tweaking the output of `C-h b' Date: Mon, 01 Nov 2021 16:38:27 +0200 Message-ID: <834k8wlz4s.fsf@gnu.org> References: <87lf29xdkf.fsf@gnus.org> <87h7cxx9bh.fsf@gnus.org> <874k8xx8fc.fsf@gnus.org> <87ilxdorj9.fsf@gmail.com> <83mtmomuf8.fsf@gnu.org> <87cznkky0x.fsf@gmail.com> <83fssgm4jl.fsf@gnu.org> <87tugweyuh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37074"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, jonas@bernoul.li, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: =?utf-8?Q?K=C3=A9vin?= Le Gouguec Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 01 15:39:32 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mhYTE-0009RV-HI for ged-emacs-devel@m.gmane-mx.org; Mon, 01 Nov 2021 15:39:32 +0100 Original-Received: from localhost ([::1]:48688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhYTD-0001HF-0C for ged-emacs-devel@m.gmane-mx.org; Mon, 01 Nov 2021 10:39:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhYSK-0008NQ-9d for emacs-devel@gnu.org; Mon, 01 Nov 2021 10:38:36 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhYSI-0001hn-T9; Mon, 01 Nov 2021 10:38:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Gh3maj0d5/I32c8wEl68omcf9IYTFTkRaMVd99awT38=; b=Sub2uedTPE5ooJARmEnZ vQNE52I1wL5C36R98BkxweRvzrGGTch6Za61AaruoeYqxWZsbpdHo21UX+p08ZTO6fTE4TqGD01I+ csEKSkgujk71I2XN3ruCGbKaLYup55RIzoE5mlR/sFP8SDu8Bw54ba6PeXRWEDHq+8Z6Y5W8YZ/zu U4A9CSJnHrR50XVaINFyDmi8S8HussbL5TPv77f0OIdzswQAYZiN2zcDG1tfzcZtr1ArYADoVz6xD m14aMbhw1vGziWJKvVrAQfRy9817NY+ziSw1abUGP9KD7k+KlbFzPJJeZbs1mXxxR4CJ9DOaJ92cH CLvWHEqrfGDKgA==; Original-Received: from [87.69.77.57] (port=3411 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhYSI-0004Oy-EN; Mon, 01 Nov 2021 10:38:34 -0400 In-Reply-To: <87tugweyuh.fsf@gmail.com> (message from =?utf-8?Q?K=C3=A9vin?= Le Gouguec on Mon, 01 Nov 2021 15:26:30 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:278394 Archived-At: > From: Kévin Le Gouguec > 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?