From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#15748: 24.3.50; `customize-group': Provide a way to hide/show all values Date: Wed, 11 May 2022 10:05:29 +0300 Organization: LINKOV.NET Message-ID: <86lev8bngu.fsf@mail.linkov.net> References: <3a6553a3-0e1f-45ca-bfa2-8f39207f9308@default> <87fslhfkxp.fsf@gnus.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="39747"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: Howard Melman , 15748@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 11 09:26:38 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1nogjz-000A8O-WB for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 May 2022 09:26:35 +0200 Original-Received: from localhost ([::1]:44324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nogjy-00032o-JS for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 May 2022 03:26:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43186) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nogjU-000322-QD for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 03:26:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41959) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nogjS-00058G-K4 for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 03:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nogjS-00061d-GR for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 03:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 May 2022 07:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15748 X-GNU-PR-Package: emacs Original-Received: via spool by 15748-submit@debbugs.gnu.org id=B15748.165225391723057 (code B ref 15748); Wed, 11 May 2022 07:26:02 +0000 Original-Received: (at 15748) by debbugs.gnu.org; 11 May 2022 07:25:17 +0000 Original-Received: from localhost ([127.0.0.1]:35844 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nogij-0005zi-FZ for submit@debbugs.gnu.org; Wed, 11 May 2022 03:25:17 -0400 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:42037) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nogig-0005zN-7T for 15748@debbugs.gnu.org; Wed, 11 May 2022 03:25:16 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id D64131C0004; Wed, 11 May 2022 07:25:05 +0000 (UTC) In-Reply-To: <87fslhfkxp.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 10 May 2022 17:48:18 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:231882 Archived-At: >> When exploring new packages I often use customize-group to see what >> settings I can change but it defaults to not showing the values and also >> showing only the first line of each docstring requiring me to click on >> "More" for every option. Having a command to show/hide all values >> would be very convenient in this case. > > I've now added this to Emacs 29 (as custom-toggle-hide-all-variables/`H/). `H' on a group with subgroups gives on the subgroup widget: Debugger entered--Lisp error: (error "Invalid widget type") error("Invalid widget type") custom-toggle-hide-variable((...)) custom-toggle-hide-all-variables() funcall-interactively(custom-toggle-hide-all-variables) command-execute(custom-toggle-hide-all-variables) >> It would be nice to model this on org-cycle and the new outline-cycle >> command so that S-TAB cycles through the various display states of all >> options at once. Such a cycle command should also appear in the >> Custom menu. >> >> Currently is bound to widget-backward in customize buffers but >> perhaps it and widget-forward could move to C-c C-n/p or M-n/p >> or something else instead. > > I don't think we can move the S- bindings -- we use them all over > the place. I see the charm of reusing Org bindings here, but it's > unfortunate that they clash with navigation commands common to most > other modes. If it's possible to find such a regexp that matches the heading of every variable section, then outline-minor-mode could be enabled to bind these keys only on headings.