GNU bug report logs - #79159
[PATCH] Do not display in the tab line tabs that are excluded.

Previous Next

Package: emacs;

Reported by: Elijah Gabe Pérez <eg642616 <at> gmail.com>

Date: Sat, 2 Aug 2025 20:02:02 UTC

Severity: normal

Tags: patch

Fixed in version 31.0.50

Done: Juri Linkov <juri <at> linkov.net>

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: Elijah Gabe Pérez <eg642616 <at> gmail.com>
Cc: 79159 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: bug#79159: [PATCH] Do not display in the tab line tabs that are excluded.
Date: Sun, 10 Aug 2025 21:35:35 +0300
> +(defvar tab-line-tabs-window-buffers-filter-function
> +  #'tab-line-tabs-window-buffers-filter-default
> +  "Filter which buffers should be displayed in the tab line.")

Shouldn't this be defcustom?  Then you can add a const 'identity'
to allow keeping excluded buffers.

> +(defvar tab-line-tabs-window-buffers-function
> +  #'tab-line-tabs-window-buffers-default
> +  "Function for get a list of window buffers.
> +Used only for `tab-line-tabs-fixed-window-buffers'.")

I wonder why do you need another indirection.  It should be
sufficient to use tab-line-tabs-window-buffers-filter-function
in the current implementation of tab-line-tabs-window-buffers,
especially with the value 'identity' to keep current behavior.

> @@ -598,7 +626,10 @@ tab-line-tabs-fixed-window-buffers
>                                (lambda (buf idx) (puthash buf idx index-table))
>                                old-buffers)
>                               index-table))
> -         (new-buffers (sort (tab-line-tabs-window-buffers)
> +         (buffers (funcall
> +                   tab-line-tabs-window-buffers-filter-function
> +                   (funcall tab-line-tabs-window-buffers-function)))
> +         (new-buffers (sort buffers

Then the above change is not needed too.




This bug report was last modified 5 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.