From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Tabs Date: Wed, 06 Nov 2019 01:24:21 +0200 Organization: LINKOV.NET Message-ID: <87pni552l6.fsf@mail.linkov.net> References: <87a7bpysm8.fsf@mail.linkov.net> <875zlnu9ds.fsf@web.de> <87blvdxpr0.fsf@mail.linkov.net> <878sqhtbm3.fsf@web.de> <87v9tgnndn.fsf@mail.linkov.net> <87h84npa5e.fsf@web.de> <87imp2vns4.fsf@mail.linkov.net> <87a7aeth9c.fsf@web.de> <87blurnj4z.fsf@web.de> <87lftta63c.fsf@mail.linkov.net> <87d0f4n9l3.fsf@web.de> <87sgo0z5pj.fsf@mail.linkov.net> <87lftp3s8u.fsf@web.de> <871rvgftik.fsf@mail.linkov.net> <87o8yijcj2.fsf@web.de> <87wod0s60h.fsf@mail.linkov.net> <87eez1843b.fsf@web.de> <87ftjfruza.fsf@mail.linkov.net> <87zhhj8j3m.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="152796"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 06 00:25:38 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iS8Cf-000dWZ-AS for ged-emacs-devel@m.gmane.org; Wed, 06 Nov 2019 00:25:37 +0100 Original-Received: from localhost ([::1]:51546 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iS8Ce-0000Fk-2Q for ged-emacs-devel@m.gmane.org; Tue, 05 Nov 2019 18:25:36 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53663) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iS8CS-0000EI-Nr for emacs-devel@gnu.org; Tue, 05 Nov 2019 18:25:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iS8CR-0003cX-1m for emacs-devel@gnu.org; Tue, 05 Nov 2019 18:25:24 -0500 Original-Received: from bonobo.elm.relay.mailchannels.net ([23.83.212.22]:20069) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iS8CQ-0003Yz-Fz for emacs-devel@gnu.org; Tue, 05 Nov 2019 18:25:22 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 53FD42180E; Tue, 5 Nov 2019 23:25:19 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a13.g.dreamhost.com (100-96-6-183.trex.outbound.svc.cluster.local [100.96.6.183]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id E15EF21511; Tue, 5 Nov 2019 23:25:18 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a13.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Tue, 05 Nov 2019 23:25:19 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Ruddy-Quick: 56ddcad631845823_1572996319144_135603860 X-MC-Loop-Signature: 1572996319143:4038954404 X-MC-Ingress-Time: 1572996319143 Original-Received: from pdx1-sub0-mail-a13.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a13.g.dreamhost.com (Postfix) with ESMTP id 853E77F0D2; Tue, 5 Nov 2019 15:25:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=kwZD4hVLKZ3H1Vcdq4vx0iUnuTM=; b= 2G7U5mZfipuQs6kfQOyAJ5p41Shp51wGWtg7ucT8TceK3aIQ/ISL8PNcaZSF+LbA Cps9ZQ1dBUYbTXzilAaxUFwJKkIUPVWc6soXbc/tZvdnyLoPTDvlF3x+zSTxE56J FY/V8XYNOtvNigAC+Lm1MP+P39cFrM4isUCPf40pBi0= Original-Received: from mail.jurta.org (m91-129-101-77.cust.tele2.ee [91.129.101.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a13.g.dreamhost.com (Postfix) with ESMTPSA id CE7DB7F45F; Tue, 5 Nov 2019 15:25:11 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a13 In-Reply-To: <87zhhj8j3m.fsf@web.de> (Michael Heerdegen's message of "Tue, 29 Oct 2019 20:09:01 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 23.83.212.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:241837 Archived-At: >> Now you can replace all code above with just 3 lines: >> >> (setq tab-line-tabs-function #'tab-line-tabs-mode-buffers) >> (dolist (hook '(Info-mode-hook eww-mode-hook)) >> (add-hook hook #'tab-line-mode)) >> >> This is because now tab-line-tabs-function is customizable to the >> function that populates the tab-line with buffers having the same >> mode. > > Tried that for some days now, and it works perfectly so far. Now 'tab-line-tabs-function' has a new more general option 'tab-line-tabs-buffer-groups' that groups tabs by buffer modes. Clicking on the mode name displays all modes. Selecting a mode from mode list displays only buffers with the same mode.