]> git.eshelyaron.com Git - emacs.git/commit
Allow multi-level outlines in tabulated-list-groups used by list-buffers
authorJuri Linkov <juri@linkov.net>
Wed, 5 Jun 2024 17:07:28 +0000 (20:07 +0300)
committerEshel Yaron <me@eshelyaron.com>
Thu, 6 Jun 2024 10:25:05 +0000 (12:25 +0200)
commit7ced8e31112166df1d237d6e88448904ab87ac48
tree116eeedbd5820a801e3a94faba2b1ab15fbb2f8c
parent1b0b4ecb2974f30f33c2e03e06bdc98997623e6c
Allow multi-level outlines in tabulated-list-groups used by list-buffers

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-groups)
(tabulated-list-groups-categorize, tabulated-list-groups-sort)
(tabulated-list-groups-flatten): New functions (bug#70150).

* lisp/buff-menu.el (Buffer-menu-group-by): Change type from a function
to a list of functions.
(list-buffers--refresh): Use the function 'tabulated-list-groups' where
:path-function uses a list of functions from 'Buffer-menu-group-by', and
:sort-function is hard-coded to sort groups by name.
(Buffer-menu-group-by-mode, Buffer-menu-group-by-root): Remove prefix "*".

(cherry picked from commit ec8c0b0d0d8a6b8804fa3e6619242ec6db32fd19)
lisp/buff-menu.el
lisp/emacs-lisp/tabulated-list.el