GNU bug report logs - #79046
(WIP) [PATCH] tab-line: Change close button appearance for modified tabs

Previous Next

Package: emacs;

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

Date: Sat, 19 Jul 2025 01:23: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: 79046 <at> debbugs.gnu.org
Subject: bug#79046: (WIP) [PATCH] tab-line: Change close button appearance for modified tabs
Date: Sun, 20 Jul 2025 09:47:08 +0300
> When editing multiple buffers the `tab-line-tab-modified` face (which
> indicates that a buffer has been modified and not saved) is sometimes
> barely visible or hard to distinguish from the tab line.
>
> This patch changes the appearance of the close button icon when the
> buffer has been modified, similar to other editors.

Thanks, I tried it out, and it looks nice.

> The patch is not yet finished, this feature is currently "hardcoded"
> (the only way to disable this is removing `tab-line-tab-face-modified`
> from `tab-line-tab-face-functions`).
>
> I would like any suggestion, if should this have an option for disable
> this.

There is an option `tab-line-tab-name-format-function`,
but it would be too cumbersome for users to override the
whole `tab-line-tab-name-format-default` to be able to
disable only the close button.

Maybe it would be ok for users to customize the icon with

  M-x customize-icon RET tab-line-close-modified RET

and copy attributes from `tab-line-close-button`.




This bug report was last modified 13 days ago.

Previous Next


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