GNU bug report logs - #78988
31.0.50; [Feature Request] Exclude derived modes and buffer names in tab-line-mode

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Elijah Gabe Pérez <eg642616@HIDDEN>; dated Thu, 10 Jul 2025 02:21:06 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 78988 <at> debbugs.gnu.org:


Received: (at 78988) by debbugs.gnu.org; 10 Jul 2025 19:26:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 10 15:26:19 2025
Received: from localhost ([127.0.0.1]:59762 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uZwuQ-00042Y-Ln
	for submit <at> debbugs.gnu.org; Thu, 10 Jul 2025 15:26:19 -0400
Received: from mail-ot1-x344.google.com ([2607:f8b0:4864:20::344]:53471)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <eg642616@HIDDEN>)
 id 1uZwuO-000428-OT
 for 78988 <at> debbugs.gnu.org; Thu, 10 Jul 2025 15:26:17 -0400
Received: by mail-ot1-x344.google.com with SMTP id
 46e09a7af769-736f9e352cbso712115a34.2
 for <78988 <at> debbugs.gnu.org>; Thu, 10 Jul 2025 12:26:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1752175570; x=1752780370; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=r1zoVJFhIaMh1PYcIbpmzba8rKaDEsIa1VAQ6jq9yXo=;
 b=KRsZCyAaH3Yxze2JecbROveidOkxv9wtvZyOWRmP0z17Rl4TplmvyC91EqHiF+t9fz
 o+suCc08dmjx28rfyw1kOVqgfa/llvjFTNI8dyl6g6/Ax19nxsSdUbk9DUx81jdAbNdk
 bAtMJUBLw5xZuRstaR7H2w3s5l87gOxv+100qaP2bStUAP7EZ+yV6rGYurTka34U+xi5
 BxLTAqGMC0ZW3JLl+CL3nf2NkBK+WeBj936KSOCfOIQuKsOXWz7ZdI1BHQBn9e/ihWUL
 njp2HLyJfLGv/QF4ulGH1kScWlR746G7Ail4m5Cm/1Wl1AyBvlVKQTJkfyUYNAhcgBDi
 N5DA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1752175570; x=1752780370;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=r1zoVJFhIaMh1PYcIbpmzba8rKaDEsIa1VAQ6jq9yXo=;
 b=r2hPgNg0/HNb3BPwkg82wR9LsOowWs64mEKspWill1VG/XOJP1JrAHC6PALcaP3/NE
 8XOgHOBnCQ0XgF0pLjidNcwW33gf5VwUuuSmg2xbrvqbf8BaJZVCJAGwU4qObOn/xhtu
 FlEKxj3eyzUYNR2w8o/UnGfNDrQ27KAj+KZ1Lnl+U4QR6WQDUI7V3JR9P/dEuophi1cp
 1Cpn+uskWB19AKQS3I06hlNScwJd50zcDTVv/zwehf+C6caIT7MIpbwqrnr50rGwC/uU
 ik1DKz6jIim2vNtbgdGhHjd4UqB7+U3hIPSwMjJpcO7z0fvtrecxHCZYYkJ97hzPlYP7
 CzpA==
X-Gm-Message-State: AOJu0YxmRXI4Q+Z2hl2AsFQVZ4Ga0IVL36BMYze8tqtg8nhT3s+XMdE7
 GKTopkQetpRcMSUcx/avCUlyXnA8w6lnwIkSUiqvOH+/3mlERvR71F1uIGjLYUNL
X-Gm-Gg: ASbGncs9X9Mg2yGGFLZ4BhgC5Jos4gPTixAF8UPBw0OtYLUKuXSW5bjkUmB16h5xg82
 MA8EgxeNPWdiXvuKQUeSRvpu+RBdHWE+LiI4/KOQksy5EsvnODMnoXLLZNLex7XZVpHxVnz8QBC
 uWRwcDyiDAbIDsK5njWg1HcJSS9aYlsxpgvavhuzhTf97cNkbYnyXPHSVoXlME/rPh3oKjDv0pU
 RpRAd5x9KjKzMeEaiM83WsbugOqtOPMSOHzpLw2EFPGwd/SVhfUH2EXxpL2QMaDD7ugb5YFEAJS
 BOWGKoVD6McslvnQCCkoHaSoyDPGXeXTzyvjZC6U0RPAz1QhD6qnE8I=
X-Google-Smtp-Source: AGHT+IGMoXrJDuw86fO8WYHUxxm/usUWB6GnG3qNVA9ZT1q9/n/kR9kEFt5x8MC7ClFkRBROaH2M0g==
X-Received: by 2002:a05:6830:4121:b0:73b:2751:eee2 with SMTP id
 46e09a7af769-73cf9f333c4mr588913a34.23.1752175570426; 
 Thu, 10 Jul 2025 12:26:10 -0700 (PDT)
Received: from fedora ([189.215.164.191]) by smtp.gmail.com with ESMTPSA id
 46e09a7af769-73cf0f147e7sm307843a34.0.2025.07.10.12.26.09
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 10 Jul 2025 12:26:09 -0700 (PDT)
From: =?utf-8?Q?Elijah_Gabe_P=C3=A9rez?= <eg642616@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#78988: 31.0.50; [Feature Request] Exclude derived modes and
 buffer names in tab-line-mode
In-Reply-To: <87zfdcilgv.fsf@HIDDEN>
References: <87wm8gn5x0.fsf@HIDDEN> <87zfdcilgv.fsf@HIDDEN>
Date: Thu, 10 Jul 2025 13:26:06 -0600
Message-ID: <87frf326gh.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 78988
Cc: 78988 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

--=-=-=
Content-Type: text/plain

Juri Linkov <juri@HIDDEN> writes:

> The most powerful customization would be using `buffer-match-p` with the
> customization type `buffer-predicate` that supports a regular expression
> to match a buffer name, `derived-mode` and `major-mode` combined with
> `and`, `or` and `not`.  Maybe it would be possible even to reuse the
> existing option `tab-line-exclude-modes` when it's a plain list
> for backward compatibility.

Thanks for your ideas, this is what I have done, I've tested it and
works great:

--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment; filename=tab-line.patch

diff --git a/lisp/tab-line.el b/lisp/tab-line.el
index 761968b4457..de985da12f3 100644
--- a/lisp/tab-line.el
+++ b/lisp/tab-line.el
@@ -1242,11 +1242,12 @@ tab-line-mode
                tab-line-format))))
 
 (defcustom tab-line-exclude-modes
-  '(completion-list-mode)
+  '(or "\\` " (major-mode . completion-list-mode))
   "List of major modes for which the tab-line display is not enabled.
 Buffers under any of these major modes will not show the tab line in
 their windows, even if `global-tab-line-mode' is enabled."
-  :type '(repeat symbol)
+  :type '(choice (repeat :tag "Major modes" (symbol :value fundamental-mode))
+                 (buffer-predicate :tag "Buffer predicate"))
   :group 'tab-line
   :version "27.1")
 
@@ -1261,7 +1262,7 @@ tab-line-mode--turn-on
 and buffers that have a non-nil buffer-local value
 of `tab-line-exclude', are exempt from `tab-line-mode'."
   (unless (or (minibufferp)
-              (string-match-p "\\` " (buffer-name))
+              (buffer-match-p tab-line-exclude-modes (buffer-name))
               (memq major-mode tab-line-exclude-modes)
               (get major-mode 'tab-line-exclude)
               (buffer-local-value 'tab-line-exclude (current-buffer)))

--=-=-=
Content-Type: text/plain


But I'm wondering if we can rename `tab-line-exclude-modes` to something
like `tab-line-exclude-buffers` and let `tab-line-exclude-modes` as an
alias, since this is now more flexible and not limited to major modes.

-- 
                                          - E.G via GNU Emacs and Org.

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78988; Package emacs. Full text available.

Message received at 78988 <at> debbugs.gnu.org:


Received: (at 78988) by debbugs.gnu.org; 10 Jul 2025 06:56:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 10 02:56:53 2025
Received: from localhost ([127.0.0.1]:54932 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uZlDB-000898-3z
	for submit <at> debbugs.gnu.org; Thu, 10 Jul 2025 02:56:53 -0400
Received: from mout-y-209.mailbox.org ([2001:67c:2050:103:465::209]:58636)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1uZlD6-00088i-1m
 for 78988 <at> debbugs.gnu.org; Thu, 10 Jul 2025 02:56:50 -0400
Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-y-209.mailbox.org (Postfix) with ESMTPS id 4bd5H86Xxpz9yy5;
 Thu, 10 Jul 2025 08:56:36 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; 
 t=1752130597;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=Ejh8fDhMWKSmTT7G74wh5Fp2L8M4qhcvlkn+IZSAz6U=;
 b=hg1drUVW9SFIuJvok/B0uhF9GBvRxEL1X38FcRjSRbwBQGJy31mz7ZyH4EWFtIarLU/MDt
 X1dSTaSJunJYp0TwaYIP5Xdj0UDjYxTP9NbncBENvFlC/afufpdkR+KKWK+5Wgrl9bj1JK
 3F+vAoegjsNhgOzNe8gCf6I6CSQObw3TqGwtx6yjeIIrW8bL6s24Ain41VFXVu5clFdVgx
 kw0EsGJyvUouCJA2LnYt+r8fegkL8Be0ogjZvfGs0FCbAqGHTjAJJMUfFHLrjHjpU4VJNv
 uOr5Yo07J8mWVR36xExo2HVGnfLDvF8C1QoCqQre+1hzbnC4fOoBMOwEo2Va+A==
From: Juri Linkov <juri@HIDDEN>
To: Elijah Gabe =?iso-8859-1?Q?P=E9rez?= <eg642616@HIDDEN>
Subject: Re: bug#78988: 31.0.50; [Feature Request] Exclude derived modes and
 buffer names in tab-line-mode
In-Reply-To: <87wm8gn5x0.fsf@HIDDEN>
Organization: LINKOV.NET
References: <87wm8gn5x0.fsf@HIDDEN>
Date: Thu, 10 Jul 2025 09:55:12 +0300
Message-ID: <87zfdcilgv.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 78988
Cc: 78988 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> I'm wondering if it's possible to allow `tab-line-exclude-modes`
> optionally also exclude derived modes.
>
> e.g. i don't want to enable tab-line-mode in all magit buffers,
> so instead having to do:
>   (setopt tab-line-exclude-modes
>           '(magit-mode
>             magit-diff-mode
>             ...
>             ))
>
> I can just do something like this:
>   (setopt tab-line-exclude-derived-modes '(magit-mode))
>
>
> In addition to this, also support exclude buffer names, as an simple
> alternative to `display-buffer-alist` which already does this.

The most powerful customization would be using `buffer-match-p` with the
customization type `buffer-predicate` that supports a regular expression
to match a buffer name, `derived-mode` and `major-mode` combined with
`and`, `or` and `not`.  Maybe it would be possible even to reuse the
existing option `tab-line-exclude-modes` when it's a plain list
for backward compatibility.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78988; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Jul 2025 02:20:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 09 22:20:29 2025
Received: from localhost ([127.0.0.1]:53703 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uZgte-0004yZ-3y
	for submit <at> debbugs.gnu.org; Wed, 09 Jul 2025 22:20:29 -0400
Received: from lists.gnu.org ([2001:470:142::17]:50202)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eg642616@HIDDEN>)
 id 1uZgtQ-0004tM-MI
 for submit <at> debbugs.gnu.org; Wed, 09 Jul 2025 22:20:20 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eg642616@HIDDEN>)
 id 1uZgtF-0004AF-79
 for bug-gnu-emacs@HIDDEN; Wed, 09 Jul 2025 22:20:04 -0400
Received: from mail-oi1-x244.google.com ([2607:f8b0:4864:20::244])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <eg642616@HIDDEN>)
 id 1uZgtD-0002qF-FM
 for bug-gnu-emacs@HIDDEN; Wed, 09 Jul 2025 22:20:00 -0400
Received: by mail-oi1-x244.google.com with SMTP id
 5614622812f47-40af40aee93so369648b6e.0
 for <bug-gnu-emacs@HIDDEN>; Wed, 09 Jul 2025 19:19:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1752113997; x=1752718797; darn=gnu.org;
 h=mime-version:message-id:date:subject:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=acHJYcrAyvrjgEUBgZaJKzsZZe6uzdH57xYeD2q16M4=;
 b=MG4IGQiWN8FAdDuu2/M5GTmlLp7hXt8hJ6d353CKyJPr54qOfgFWCe7hSwBZa9N9hd
 VKy209A2KXIbMX+ILqJ5VfD91egpWX4OxqgRJOt739yvEDsWcR5ZpTwBjWOtPZHFqyyE
 pa/gylSXplffQDadqMC/1VANrYwl6av4c3gpWtl3LtVU1tKUNTFZPEoU9aFhBNPZtc3U
 1KYZtA3/nVf2yu4JPbdim07lUmUaXny1KMfXUFAAZs2S3YkXNSNELFabGKEXVpsNWgRG
 O3PYK+sarKlxf9XHmAXdCsQsNzU+48kKLHPmS3ZrJGXod5sdqltyhpWOV8zdMxHkumch
 dZKQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1752113997; x=1752718797;
 h=mime-version:message-id:date:subject:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=acHJYcrAyvrjgEUBgZaJKzsZZe6uzdH57xYeD2q16M4=;
 b=OoTXzQwVygCQJoFkR2/AkZ3y8dclV73NEsXUZDvg8KzwXnIqOGNkIaNSlEBpUGlVBg
 igsPpPQNRXxAkJeQR87Rii0cx+JE3RV6w3u3V6AnuggRrliqBeB2qnQ5iC3cjD38CBgL
 HVPRJeowSN/1/yE1AmIBVPNsFDGuumzMe0JbH8ROVZ7Gq0+20gDhLc1yRkYD/Qc18V7r
 EKqSjovHGozr1ZHqwzWcEhFhpCsV2INH5VLJDcIrsuglX+EV4wMZ6vDNmvcVkIQOkfQ2
 GYBpJzy3zcVxycsFzOoh9yhW7alEDdxh5dfCeHx0KrOuanKLUeXuoMjpVOl3Wwa/cj7P
 jugg==
X-Gm-Message-State: AOJu0YytF2Asw/g/VOAs+4LIcu5I34u8T4GljyjqiBjw2hp5Lg2X/0/9
 gO1BL6MIhSOtu76Ud9ejxAR3yJYxzS/tvOirGv/sCllr2zg7IeMkDhx8LLeort0I
X-Gm-Gg: ASbGncv+Gusrrn21RHwngHnKYTS0rB+exzyUbS2UgxTuE6wY9pt8D5/m9RCGjBn2Ydn
 fXDVbeVJX1kAR8cI6JbTqom+Malrf7Btcn2TIL62pi1ZtEnqeQjwGj70QlTy8QiJNvmiYlIvfsA
 RxFxXRsZEYuXjisJ861SCGYwEQZnWYMpYwepMsjP4Gexq1Q3tZv6XFCBs1z96d6s+duCAiNP2/f
 gPE2+R5QwxSZOMNv6sCUqFRCRp//mZ5q8tqGear3T9B0Lg4k5j7+ozJLWv1g7NhlMTpimvbDaQG
 4q4ufayYHkTnsRUmgecwyRZlIhhHiDMzgyKksLfl
X-Google-Smtp-Source: AGHT+IGtqs+qIzGUJBDeKWMUHZOCOXl6bsSwm2q4u5HnJGKHFJ3zN0j4CWgWOmq90jMfh9Fid631Aw==
X-Received: by 2002:a05:6808:1524:b0:403:34b3:c986 with SMTP id
 5614622812f47-412bb2f2afdmr3898563b6e.17.1752113997372; 
 Wed, 09 Jul 2025 19:19:57 -0700 (PDT)
Received: from fedora ([2806:10ae:e:b56a::1]) by smtp.gmail.com with ESMTPSA id
 5614622812f47-41418c0ae9bsm62843b6e.6.2025.07.09.19.19.56
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 09 Jul 2025 19:19:56 -0700 (PDT)
From: =?utf-8?Q?Elijah_Gabe_P=C3=A9rez?= <eg642616@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 31.0.50; [Feature Request] Exclude derived modes and buffer names
 in tab-line-mode
X-Debbugs-Cc: juri@HIDDEN
Date: Wed, 09 Jul 2025 20:19:55 -0600
Message-ID: <87wm8gn5x0.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2607:f8b0:4864:20::244;
 envelope-from=eg642616@HIDDEN; helo=mail-oi1-x244.google.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: Hello I'm wondering if it's possible to allow
 `tab-line-exclude-modes`
 optionally also exclude derived modes. e.g. i don't want to enable
 tab-line-mode
 in all magit buffers, so instead having to do: (setopt tab-line-exclude-modes
 '(magit-mode magit-diff-mode ... )) 
 Content analysis details:   (1.2 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org]
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (eg642616[at]gmail.com)
 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
 in digit (eg642616[at]gmail.com)
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.2 (/)

Hello

I'm wondering if it's possible to allow `tab-line-exclude-modes`
optionally also exclude derived modes.

e.g. i don't want to enable tab-line-mode in all magit buffers,
so instead having to do:
  (setopt tab-line-exclude-modes
          '(magit-mode
            magit-diff-mode
            ...
            ))

I can just do something like this:
  (setopt tab-line-exclude-derived-modes '(magit-mode))


In addition to this, also support exclude buffer names, as an simple
alternative to `display-buffer-alist` which already does this.

-- 
                                          - E.G via GNU Emacs and Org.




Acknowledgement sent to Elijah Gabe Pérez <eg642616@HIDDEN>:
New bug report received and forwarded. Copy sent to juri@HIDDEN, bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to juri@HIDDEN, bug-gnu-emacs@HIDDEN:
bug#78988; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 10 Jul 2025 19:30:04 UTC

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