all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Kévin Le Gouguec" <kevin.legouguec@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: larsi@gnus.org, jonas@bernoul.li, monnier@iro.umontreal.ca,
	emacs-devel@gnu.org
Subject: Re: Tweaking the output of `C-h b'
Date: Mon, 01 Nov 2021 15:26:30 +0100	[thread overview]
Message-ID: <87tugweyuh.fsf@gmail.com> (raw)
In-Reply-To: <83fssgm4jl.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 01 Nov 2021 14:41:34 +0200")

[-- Attachment #1: Type: text/plain, Size: 1905 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

>> > Don't we have similar stuff in Customize buffers?
>> 
>> 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)

Visually they look similar (full arrow heads in column 0 vs fringe
chevrons); functionally, Customize options can be expanded or collapsed
with RET; Magit's sections can be manipulated like outline.el's sections
(toggle node visibility with TAB, toggle children visibility C-TAB, go
up with ^, go forward node with n, skip over sibling nodes with M-n).

Apologies if I've misunderstood.


[-- Attachment #2: customize-vs-magit-section.png --]
[-- Type: image/png, Size: 253320 bytes --]

  reply	other threads:[~2021-11-01 14:26 UTC|newest]

Thread overview: 99+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-31 18:18 Tweaking the output of `C-h b' Lars Ingebrigtsen
2021-10-31 18:28 ` Eric Abrahamsen
2021-10-31 18:34 ` Andreas Schwab
2021-10-31 18:36 ` Eli Zaretskii
2021-10-31 18:41   ` Eli Zaretskii
     [not found]     ` <878ry9x95c.fsf@gnus.org>
2021-10-31 20:05       ` Eli Zaretskii
2021-10-31 19:21 ` Stefan Monnier
     [not found]   ` <87h7cxx9bh.fsf@gnus.org>
2021-10-31 20:05     ` Stefan Monnier
2021-10-31 20:09       ` Lars Ingebrigtsen
2021-10-31 20:13         ` Stefan Monnier
2021-10-31 20:44           ` Lars Ingebrigtsen
2021-10-31 20:48             ` Stefan Monnier
2021-10-31 21:19               ` Lars Ingebrigtsen
2021-10-31 21:27                 ` Stefan Monnier
2021-10-31 22:16                   ` Lars Ingebrigtsen
2021-10-31 22:55                     ` Kévin Le Gouguec
2021-10-31 23:10                       ` Lars Ingebrigtsen
2021-11-01 10:21                         ` Kévin Le Gouguec
2021-11-01 14:23                           ` Lars Ingebrigtsen
2021-11-04 18:37                       ` Juri Linkov
2021-11-01 12:24                     ` Eli Zaretskii
2021-11-01 14:27                       ` Lars Ingebrigtsen
2021-11-01 14:39                         ` Eli Zaretskii
2021-11-01 12:52                     ` Andreas Schwab
2021-11-04 17:06                       ` Lars Ingebrigtsen
2021-10-31 20:42         ` Kévin Le Gouguec
2021-10-31 20:52           ` Stefan Monnier
2021-11-01  3:22           ` Eli Zaretskii
2021-11-01  9:47             ` Kévin Le Gouguec
2021-11-01 12:41               ` Eli Zaretskii
2021-11-01 14:26                 ` Kévin Le Gouguec [this message]
2021-11-01 14:38                   ` Eli Zaretskii
2021-10-31 20:15       ` Lars Ingebrigtsen
2021-10-31 20:24         ` Lars Ingebrigtsen
2021-11-01  0:32           ` Lars Ingebrigtsen
2021-11-01  0:50             ` Lars Ingebrigtsen
2021-11-01  1:41               ` Stefan Kangas
2021-11-01  2:24                 ` Lars Ingebrigtsen
2021-11-01  4:55                   ` Stefan Kangas
2021-11-01 14:20                     ` Lars Ingebrigtsen
2021-11-01 13:34                   ` T.V Raman
2021-11-01 13:45                     ` Po Lu
2021-11-01 14:28                     ` Lars Ingebrigtsen
2021-11-01 17:47                       ` T.V Raman
2021-11-01 17:52                         ` Lars Ingebrigtsen
2021-11-01  2:37                 ` Po Lu
2021-11-01  4:39                   ` Stefan Kangas
2021-11-01  5:26                     ` Po Lu
2021-11-01 11:55                       ` Stefan Monnier
2021-11-01 11:58                         ` Po Lu
2021-11-01 12:33                       ` Eli Zaretskii
2021-11-01 12:46                         ` Po Lu
2021-11-01 13:28                           ` Eli Zaretskii
2021-11-01 13:43                             ` Po Lu
2021-11-01 14:35                               ` Eli Zaretskii
2021-11-02  1:11                                 ` Po Lu
2021-11-02  1:39                                   ` Lars Ingebrigtsen
2021-11-02  1:55                                     ` Po Lu
2021-11-02  2:02                                       ` Lars Ingebrigtsen
2021-11-02  2:05                                         ` Po Lu
2021-11-02  2:10                                           ` Lars Ingebrigtsen
2021-11-02  2:18                                             ` Po Lu
2021-11-02 14:56                                               ` Lars Ingebrigtsen
2021-11-02  2:37                                             ` Stefan Monnier
2021-11-02 14:10                                               ` Stefan Kangas
2021-11-02 14:30                                                 ` Lars Ingebrigtsen
2021-11-04 18:34                                                   ` Juri Linkov
2021-11-04 19:41                                                     ` Stefan Kangas
2021-11-01 18:00                             ` Stefan Monnier
2021-11-01 17:12                         ` Matthias Meulien
2021-11-01 17:17                           ` Eli Zaretskii
2021-11-01 17:20                             ` Lars Ingebrigtsen
2021-11-01 17:23                               ` Eli Zaretskii
2021-11-01 17:27                                 ` Lars Ingebrigtsen
2021-11-01 18:18                                   ` Stefan Monnier
2021-11-01 18:51                                     ` Lars Ingebrigtsen
2021-11-01 22:03                                   ` Matthias Meulien
2021-11-01 21:55                             ` Matthias Meulien
2021-11-02 13:11                               ` Eli Zaretskii
2021-11-02 14:11                                 ` Stefan Kangas
2021-11-01 11:00                     ` Kévin Le Gouguec
2021-11-01 14:13                       ` Lars Ingebrigtsen
2021-11-01 23:41                         ` Stefan Kangas
2021-11-01 23:50                           ` Lars Ingebrigtsen
2021-11-01 23:59                             ` Stefan Kangas
2021-11-02  2:04                               ` Lars Ingebrigtsen
2021-11-02 14:11                                 ` Stefan Kangas
2021-11-02 14:32                                   ` Lars Ingebrigtsen
2021-11-01 14:01                     ` Lars Ingebrigtsen
2021-11-01 14:48                       ` Customize SVG icons (was: Tweaking the output of `C-h b') Kévin Le Gouguec
2021-11-01 16:36                         ` Yuri Khan
2021-11-01 17:58                         ` Customize SVG icons Kévin Le Gouguec
2021-11-01 14:09                   ` Tweaking the output of `C-h b' Lars Ingebrigtsen
2021-11-01 12:29                 ` Eli Zaretskii
2021-11-01 15:11                 ` Lars Ingebrigtsen
2021-11-01  1:24             ` Stefan Kangas
2021-10-31 19:22 ` Stefan Kangas
2021-10-31 20:51   ` Howard Melman
2021-10-31 21:32 ` Gregory Heytings

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tugweyuh.fsf@gmail.com \
    --to=kevin.legouguec@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=jonas@bernoul.li \
    --cc=larsi@gnus.org \
    --cc=monnier@iro.umontreal.ca \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.