>From 17036ccb9e6e2be23cb8db6c41a818e9225f07da Mon Sep 17 00:00:00 2001 From: Gabriel do Nascimento Ribeiro Date: Fri, 12 Mar 2021 22:28:06 -0300 Subject: [PATCH] lisp/tab-line.el: Update docstring of 'tab-line-tabs-function' (tab-line-tabs-function): Mention'tab-line-tabs-buffer-groups' in the docstring. (tab-line-tabs-buffer-groups): Add docstring. --- lisp/tab-line.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/tab-line.el b/lisp/tab-line.el index 903862a3e8..eb1921181b 100644 --- a/lisp/tab-line.el +++ b/lisp/tab-line.el @@ -294,7 +294,10 @@ tab-line-tabs-function By default, use function `tab-line-tabs-window-buffers' that returns a list of buffers associated with the selected window. When `tab-line-tabs-mode-buffers', return a list of buffers -with the same major mode as the current buffer." +with the same major mode as the current buffer. +When `tab-line-tabs-buffer-groups', return a list of buffers +grouped either by `tab-line-tabs-buffer-group-function', when set, +or by `tab-line-tabs-buffer-groups'." :type '(choice (const :tag "Window buffers" tab-line-tabs-window-buffers) (const :tag "Same mode buffers" @@ -356,6 +359,9 @@ tab-line-tabs-buffer-group-name mode)))) (defun tab-line-tabs-buffer-groups () + "Return a list of buffers grouped either +by `tab-line-tabs-buffer-group-function', when set, +or by `tab-line-tabs-buffer-groups'." (if (window-parameter nil 'tab-line-groups) (let* ((buffers (funcall tab-line-tabs-buffer-list-function)) (groups -- 2.27.0