[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 8305d0e0c90: Add tabulated-list-groups and Buffer-menu-group-
From: |
Juri Linkov |
Subject: |
Re: master 8305d0e0c90: Add tabulated-list-groups and Buffer-menu-group-by (bug#69305) |
Date: |
Sat, 02 Mar 2024 19:12:32 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) |
>> +You can use @code{seq-group-by} to create @code{tabulated-list-groups}
>> +from @code{tabulated-list-entries}. For example:
>> +
>> +@smallexample
>> +@group
>> + (setq tabulated-list-groups
>> + (seq-group-by 'Buffer-menu-group-by-mode
>> + tabulated-list-entries))
>> +@end group
>> +@end smallexample
>> +
>> +where you can define @code{Buffer-menu-group-by-mode} like this:
>> +
>> +@smallexample
>> +@group
>> +(defun Buffer-menu-group-by-mode (entry)
>> + (concat "* " (aref (cadr entry) 5)))
>> +@end group
>> +@end smallexample
>
> Sorry if I'm missing the obvious, but is there a reason why the first
> example is indented by 2 spaces and the second one not?
Thanks for the bug report. This should be fixed now.