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.bugs Subject: bug#69305: outline-minor-mode for tabulated-list-mode Date: Wed, 21 Feb 2024 21:12:46 +0200 Message-ID: <86frxlmy1d.fsf@gnu.org> References: <86msrtvi06.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24458"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69305@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 21 20:14:06 2024 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 1rcs2f-0006AC-RA for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Feb 2024 20:14:05 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rcs2H-0004Od-1V; Wed, 21 Feb 2024 14:13:41 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rcs2G-0004OT-9N for bug-gnu-emacs@gnu.org; Wed, 21 Feb 2024 14:13:40 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rcs2G-0004Oc-1R for bug-gnu-emacs@gnu.org; Wed, 21 Feb 2024 14:13:40 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rcs2c-000852-9I for bug-gnu-emacs@gnu.org; Wed, 21 Feb 2024 14:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Feb 2024 19:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69305 X-GNU-PR-Package: emacs Original-Received: via spool by 69305-submit@debbugs.gnu.org id=B69305.170854280230961 (code B ref 69305); Wed, 21 Feb 2024 19:14:02 +0000 Original-Received: (at 69305) by debbugs.gnu.org; 21 Feb 2024 19:13:22 +0000 Original-Received: from localhost ([127.0.0.1]:34705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcs1x-00083J-P4 for submit@debbugs.gnu.org; Wed, 21 Feb 2024 14:13:22 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcs1v-00082k-AE for 69305@debbugs.gnu.org; Wed, 21 Feb 2024 14:13:20 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rcs1S-0004Jx-7h; Wed, 21 Feb 2024 14:12:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=LMzIFlkVd5ROjsoT0EdvmbW6QK3cwrvkx3He3AP473U=; b=sHfM0ygZZSv3 BeOmS+h2eNqRk6k3C4DnX1yVV2QCzYKKcUhyKSibx2Oty/3AjNMnH9kQ4xx1sx2GXRW/m9qrvq7XN P+kfq/jooFGu0w8Rz6A/yi2Y/NFJsaifu6/HdHC7gpJYSqsmqmDch7ngyQPnHQBbvDycdXywBzRtG NNDyjFhXyX/78NOKgdxcw6joFmCz+36XubLfT3K7nCPA6etVotnxh9r94xy9P6VZKCgwuuO1gwkub NuL0AC/ZHpmQFj1PqaRNc3DYxcNrbGMouN6lMNypKSWLqoD0ItUCd13AJRu8waG0mxThUac0QyCA4 ccxTTG6UKZRhvOZqSiStTg==; In-Reply-To: <86msrtvi06.fsf@mail.linkov.net> (message from Juri Linkov on Wed, 21 Feb 2024 19:34:17 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:280413 Archived-At: > From: Juri Linkov > Date: Wed, 21 Feb 2024 19:34:17 +0200 > > >> +(defcustom Buffer-menu-group-by nil > >> + "If non-nil, buffers are grouped by function." > >> + :type 'function > >> + :group 'Buffer-menu > >> + :version "30.1") > > > > Please consider letting users choose a symbol, not a function. Each > > symbol can be mapped to a function, but having a user option whose > > values are functions makes it harder for users to customize the > > option. > > Ok, now the type is changed to 'symbol'. Here is the complete patch: Thanks, but I wonder if we can be a tad more user-friendly? The user option exists, and it can accept simple enough data structures for customizations, but the default is nil, and there's no example or pre-cooked list of ready-to-use values anywhere in sight, not even in the doc string. Users will have to work hard to produce a grouping of their liking. E.g., suppose I want to group buffers by mode -- how would I go about it? Or what about grouping buffers by their leading directories -- how can that be done? Etc. etc. -- this could be a very powerful feature, but we should make its use easier. And, after reading the documentation of tabulated-list-groups and that of tabulated-list-entries several times, I have no idea how to specify simple groupings such as those described above. Which makes examples or pre-cooked values even more important, IMO. What I had in mind when I said "choose a symbol" was that a symbol will stand for a pre-cooked grouping. For example, 'mode would cause buffers grouped by major-mode, 'directory will group by leading directories, 'alphabet will group by the first letter of the name, etc. What this patch provides is quite a far cry from that.