From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.help Subject: Re: Help customising the behaviour of the new Tab Line mode Date: Wed, 19 Aug 2020 04:28:58 +0300 Organization: LINKOV.NET Message-ID: <87r1s3h19h.fsf@mail.linkov.net> References: <005b781b-a6e0-e1b8-bf2e-090c67de16ac.ref@yahoo.de> <005b781b-a6e0-e1b8-bf2e-090c67de16ac@yahoo.de> <878seeys27.fsf@mail.linkov.net> <4368b11d-8e6f-509f-06a0-dea6ebd22fc7@yahoo.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39632"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: Help Gnu Emacs mailing list To: "R. Diez" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 19 03:31:15 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k8Cwc-000AD3-U5 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 19 Aug 2020 03:31:14 +0200 Original-Received: from localhost ([::1]:34094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k8Cwb-0004K7-VV for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 18 Aug 2020 21:31:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k8CwA-0004JM-5i for help-gnu-emacs@gnu.org; Tue, 18 Aug 2020 21:30:46 -0400 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:40615) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k8Cw7-0001oC-Vu for help-gnu-emacs@gnu.org; Tue, 18 Aug 2020 21:30:45 -0400 X-Originating-IP: 91.129.102.47 Original-Received: from mail.gandi.net (m91-129-102-47.cust.tele2.ee [91.129.102.47]) (Authenticated sender: juri@linkov.net) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 21D21FF804; Wed, 19 Aug 2020 01:30:37 +0000 (UTC) In-Reply-To: <4368b11d-8e6f-509f-06a0-dea6ebd22fc7@yahoo.de> (R. Diez's message of "Tue, 18 Aug 2020 08:12:22 +0200") Received-SPF: pass client-ip=217.70.183.199; envelope-from=juri@linkov.net; helo=relay9-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/18 21:30:39 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123726 Archived-At: > That with the .h and .cpp files was just an example. When I work on a base > class and a derived class, I keep the base class to the left and the > derived class to the right. If I am working on an HTML page, I keep the CSS > file to the left, so that I can switch quickly between them. And so forth. It should not be too hard to write another function for `tab-line-tabs-function' that will keep the manually sorted list of buffers, and a new command with a name `tab-line-move-tab' that will move the current tab in the internally maintained sorted buffer list used to display tabs on the tab-line. Then the remaining question is where would you prefer a new buffer to appear? When you visit a new buffer, it should be added to such list of buffers. One possible place is to put the new buffer to the end of the list, but then wouldn't it too inconvenient for you to move its tab from the end of the list to a more appropriate place where you want it to be?