GNU bug report logs - #47118
28.0.50; [PATCH] lisp/tab-line.el: Add face for group-tab

Previous Next

Package: emacs;

Reported by: Gabriel <gabriel376 <at> hotmail.com>

Date: Sat, 13 Mar 2021 02:36:02 UTC

Severity: normal

Tags: fixed, patch

Fixed in version 28.0.50

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 47118 in the body.
You can then email your comments to 47118 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#47118; Package emacs. (Sat, 13 Mar 2021 02:36:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Gabriel <gabriel376 <at> hotmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 13 Mar 2021 02:36:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Gabriel <gabriel376 <at> hotmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; [PATCH] lisp/tab-line.el: Add face for group-tab
Date: Fri, 12 Mar 2021 23:35:40 -0300
[Message part 1 (text/plain, inline)]
The problem:
When tab-line mode is enabled and configured to group buffers, a group
tab is added as the first tab. This is not a regular tab that displays a
buffer, but rather a tab to indicate the group. The face used for this
group-tab is the same of an inactive tab, which makes harder to
differentiate betweem a group tab and a regular tab that can be selected
to display a buffer.

How to reproduce:
1. emacs -Q
2. Configure tab groups by project:
(setq-default tab-line-tabs-buffer-group-function
              (lambda (b) (with-current-buffer b (vc-root-dir)))
              tab-line-tabs-function 'tab-line-tabs-buffer-groups)
3. Enable tab-line mode:
(global-tab-line-mode 1)
4. Open file from a project handled by some vc backend (e.g.: git)
5. The tab group will be displayed as the first tab with a common face

[before-patch.png (image/png, inline)]
[Message part 3 (text/plain, inline)]
The proposed solution:
Add a new face for group tabs that can be configured via
'tab-line-tab-face-functions', similar to how
'tab-line-tab-face-special' works.

How to test:
1. emacs -Q
2. Apply the patch
3. Configure tab groups by project and group face:
(setq-default tab-line-tabs-buffer-group-function
          (lambda (b) (with-current-buffer b (vc-root-dir)))
          tab-line-tabs-function 'tab-line-tabs-buffer-groups
          tab-line-tab-face-functions '(tab-line-tab-face-group))
4. Enable tab-line-mode:
(global-tab-line-mode 1)
5. Open file from a project handled by some vc backend (e.g.: git)
6. The tab group will be displayed with a different face

[0001-lisp-tab-line.el-Add-face-for-group-tab.patch (text/x-diff, attachment)]
[after-patch.png (image/png, inline)]
[Message part 6 (text/plain, inline)]
I am not sure what is the appropriate default value for the proposed new
face. Feel free to modify it, if necessary.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47118; Package emacs. (Sun, 14 Mar 2021 09:19:02 GMT) Full text and rfc822 format available.

Message #8 received at 47118 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Gabriel <gabriel376 <at> hotmail.com>
Cc: 47118 <at> debbugs.gnu.org
Subject: Re: bug#47118: 28.0.50; [PATCH] lisp/tab-line.el: Add face for
 group-tab
Date: Sun, 14 Mar 2021 11:16:58 +0200
tags 47118 fixed
close 47118 28.0.50
thanks

> The proposed solution:
> Add a new face for group tabs that can be configured via
> 'tab-line-tab-face-functions', similar to how
> 'tab-line-tab-face-special' works.

This is a useful addition, thanks.  Now pushed to master.

> I am not sure what is the appropriate default value for the proposed new
> face. Feel free to modify it, if necessary.

I think the current default is fine: it doesn't look like a tab,
while still looks like it belongs to the tab line.




Added tag(s) fixed. Request was from Juri Linkov <juri <at> linkov.net> to control <at> debbugs.gnu.org. (Sun, 14 Mar 2021 09:19:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.0.50, send any further explanations to 47118 <at> debbugs.gnu.org and Gabriel <gabriel376 <at> hotmail.com> Request was from Juri Linkov <juri <at> linkov.net> to control <at> debbugs.gnu.org. (Sun, 14 Mar 2021 09:19:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 11 Apr 2021 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 122 days ago.

Previous Next


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