* Re: master 8305d0e0c90: Add tabulated-list-groups and Buffer-menu-group-by (bug#69305)
[not found] ` <20240229175135.A6855C12C47@vcs2.savannah.gnu.org>
@ 2024-03-01 7:35 ` Arash Esbati
2024-03-02 17:12 ` Juri Linkov
0 siblings, 1 reply; 2+ messages in thread
From: Arash Esbati @ 2024-03-01 7:35 UTC (permalink / raw)
To: emacs-devel; +Cc: Juri Linkov
Juri Linkov <juri@jurta.org> writes:
> branch: master
> commit 8305d0e0c909a5dd91a21cc1daea6298aae9eda7
> Author: Juri Linkov <juri@linkov.net>
> Commit: Juri Linkov <juri@linkov.net>
>
> Add tabulated-list-groups and Buffer-menu-group-by (bug#69305)
> [...]
>
> +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?
Best, Arash
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: master 8305d0e0c90: Add tabulated-list-groups and Buffer-menu-group-by (bug#69305)
2024-03-01 7:35 ` master 8305d0e0c90: Add tabulated-list-groups and Buffer-menu-group-by (bug#69305) Arash Esbati
@ 2024-03-02 17:12 ` Juri Linkov
0 siblings, 0 replies; 2+ messages in thread
From: Juri Linkov @ 2024-03-02 17:12 UTC (permalink / raw)
To: Arash Esbati; +Cc: emacs-devel
>> +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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-02 17:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <170922909527.18485.8170168939104585634@vcs2.savannah.gnu.org>
[not found] ` <20240229175135.A6855C12C47@vcs2.savannah.gnu.org>
2024-03-01 7:35 ` master 8305d0e0c90: Add tabulated-list-groups and Buffer-menu-group-by (bug#69305) Arash Esbati
2024-03-02 17:12 ` Juri Linkov
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.