From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= Newsgroups: gmane.emacs.devel Subject: Re: Tweaking the output of `C-h b' Date: Mon, 01 Nov 2021 10:47:42 +0100 Message-ID: <87cznkky0x.fsf@gmail.com> References: <87lf29xdkf.fsf@gnus.org> <87h7cxx9bh.fsf@gnus.org> <874k8xx8fc.fsf@gnus.org> <87ilxdorj9.fsf@gmail.com> <83mtmomuf8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23113"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: larsi@gnus.org, jonas@bernoul.li, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 01 10:48:23 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 1mhTvT-0005kO-4X for ged-emacs-devel@m.gmane-mx.org; Mon, 01 Nov 2021 10:48:23 +0100 Original-Received: from localhost ([::1]:58988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhTvR-0002DN-3Y for ged-emacs-devel@m.gmane-mx.org; Mon, 01 Nov 2021 05:48:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhTut-0001Yk-DS for emacs-devel@gnu.org; Mon, 01 Nov 2021 05:47:47 -0400 Original-Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:34722) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mhTur-0005MX-TP; Mon, 01 Nov 2021 05:47:47 -0400 Original-Received: by mail-wr1-x42c.google.com with SMTP id d5so11990171wrc.1; Mon, 01 Nov 2021 02:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=CCXO0znSp6ioaloDPZCyrhiWdPuqsK1grUblyW1I1+8=; b=AonaGEuCdfx1ZqjtqJeEeFAFwvb0Cm9Ap4coqts6XOOHjR9IFMsjBvSfiWp7agZvmu vili3Eomh9x+I+PNQhwHtMQ4U9eL/OCaOk0/tP3Vc/SI0w9y1LYUKg+Jy7VN6ZoFCZxx 1kNh7yf+B+s/6VSuh7hPDpdd2qRh5EXQ7MgQdc6D6Yv0X4dIqFUh0fKX+QUqYHDM6RiB mYf86zfEKjyiW9/18YnBrnVxgojg/H2/gzEOGbJcgRFsLCT/blotWnwfBa2TeQXvP40O Z56s823T/aFtY5HtRgIBuPinB0Gm577iualHhMsBd2VAONJongPsVf6Q6ufD8efPSLp/ RtVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=CCXO0znSp6ioaloDPZCyrhiWdPuqsK1grUblyW1I1+8=; b=hJzJS/qrJmbSEtppYGRT9Fq8m8g6KKELU1WuTqBp9tFosjVwfPWjB+8xcHKFSz2wEn NXqPXTYDqem07O/mf4S0nPKB+xmV6aif20uZb3FjwH/Yy+cA7WVzRVR+v4vc7SE3ARwq ujfzr1XjsHjRECaip3anwlZTXzEjcdTWQgp1n3Ds7ZkR8Ia3t+1dhG6veFVOzJXPgaFm wMTGWtdg3myw4I1X0r1DeklPXMp0jd5xJgubMlEH1SinX5bpLsWE+6RJeY6H1x3R5ZnR f1eGPSj87SiFQ0PcyDQBMM3EOUnzj/kYJqLh16nyT2GPNpjeVl9kfN9k172znlbDcsed hDiw== X-Gm-Message-State: AOAM531p+gaY/OyWJMs7nRyPkZDUS3wwW1dMjzqGQGxtQwdOr4yjNnJf /n9X/o0wbdDYjTJtcET2WeyhTopVrdw= X-Google-Smtp-Source: ABdhPJxoiQ2mTU5OOzGeeVxBKEJl1iEMnyufwmRP/p3TTUr12H7t6E8CiKOl2dCpaL4tyTqoi8vlMQ== X-Received: by 2002:a5d:6091:: with SMTP id w17mr4953183wrt.65.1635760063702; Mon, 01 Nov 2021 02:47:43 -0700 (PDT) Original-Received: from amdahl30 ([2a01:e0a:253:fe0:2ef0:5dff:fed2:7b49]) by smtp.gmail.com with ESMTPSA id p27sm3811819wmi.28.2021.11.01.02.47.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Nov 2021 02:47:43 -0700 (PDT) In-Reply-To: <83mtmomuf8.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 01 Nov 2021 05:22:35 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=kevin.legouguec@gmail.com; helo=mail-wr1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:278364 Archived-At: Eli Zaretskii writes: >> Jonas's magit-section (available on NonGNU ELPA) more or less does >> exactly that: on the GUI, add chevrons to the left fringe (right chevron >> means "hit TAB to expand", down chevron means "hit TAB to fold back"); >> on the TUI, append ellipses to expandable sections. > > 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)