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: Sun, 01 Sep 2019 22:18:48 +0300 Organization: LINKOV.NET Message-ID: <87ftlfhlk7.fsf@mail.linkov.net> References: <87a7bpysm8.fsf@mail.linkov.net> <20190901092826.GA16279@ACM> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="41179"; 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: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 01 22:16:17 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 1i4WGj-000AXx-Ux for ged-emacs-devel@m.gmane.org; Sun, 01 Sep 2019 22:16:14 +0200 Original-Received: from localhost ([::1]:60068 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4WGi-0004ci-8v for ged-emacs-devel@m.gmane.org; Sun, 01 Sep 2019 16:16:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55672) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4WF3-0004aU-1v for emacs-devel@gnu.org; Sun, 01 Sep 2019 16:14:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i4WF0-0006qY-Oe for emacs-devel@gnu.org; Sun, 01 Sep 2019 16:14:28 -0400 Original-Received: from beige.elm.relay.mailchannels.net ([23.83.212.16]:34779) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i4WEx-0006ou-21 for emacs-devel@gnu.org; Sun, 01 Sep 2019 16:14:25 -0400 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 398378C1130; Sun, 1 Sep 2019 20:14:21 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a51.g.dreamhost.com (100-96-85-60.trex.outbound.svc.cluster.local [100.96.85.60]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id BB51B8C189A; Sun, 1 Sep 2019 20:14:20 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a51.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.17.5); Sun, 01 Sep 2019 20:14:21 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Illegal-Duck: 190fa17f4c71bb72_1567368861030_2525017270 X-MC-Loop-Signature: 1567368861029:1751627048 X-MC-Ingress-Time: 1567368861029 Original-Received: from pdx1-sub0-mail-a51.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a51.g.dreamhost.com (Postfix) with ESMTP id 75E7783BF6; Sun, 1 Sep 2019 13:14:15 -0700 (PDT) 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=O2K4PpmTuJJaI512oYdWFQE9YoI=; b= GpIxk1OklwLsoKPmTEyQmNunB4taBHy7kLGKrN556tFPDowYPmZcxr5lyuxdDC/k 2/e4tX/XxjWipkSwXhFB3AoYT4Ojb43mH0tkTW9fipracvhe6nOmh8GQ6gWYciNv FjDuuvYVagFlyb+3fA/N3o7wwj5z1kadW1klG43J9iU= Original-Received: from mail.jurta.org (m91-129-108-240.cust.tele2.ee [91.129.108.240]) (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-a51.g.dreamhost.com (Postfix) with ESMTPSA id 7BB8983BF5; Sun, 1 Sep 2019 13:14:12 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a51 In-Reply-To: <20190901092826.GA16279@ACM> (Alan Mackenzie's message of "Sun, 1 Sep 2019 09:28:26 +0000") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrudeikedgudegvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdekrddvgedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtkedrvdegtddprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegrtghmsehmuhgtrdguvgenucevlhhushhtvghrufhiiigvpedt X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.212.16 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:239758 Archived-At: >> There is a long story of several attempts to implement tabs in Emacs. > > I know tabs as things which move visually to the next column 8n. I only > know vaguely what "tabs" means in this new sense. A @dfn{tabs} would be > greatly appreciated. In text editors and tiling window managers, Tab is a graphical control element that allows multiple window layouts to be contained within a single frame, using the tab-bar as a navigational widget for switching between them. The branch implements two kinds of tabs: frame tabs and window tabs. Frame tabs are named persistent window configurations that can be represented visually as rectangular areas on the tab-bar row at the top of the frame for easy switching, but switching should be also possible without using the tab-bar. Window tabs are buffers associated with the window and can be represented visually as rectangular areas on the tab-line row at the top of each window. >> Finally now a complete implementation is available for these >> etc/TODO tasks: > > The documentation in the Emacs manual still needs to be finished. Agreed, will work on this. > I've tried several of the new commands on a Linux tty, including > tab-bar-mode, and C-x 6 b. Although they didn't throw any errors, none > of them appeared to do anything. Is the new mode intended to work on a > tty? Thanks for trying. I guess you tried only frame tabs on a tty since window tabs are already supported on a tty. But in case of frame tabs indeed, tab-bar-mode should not be necessary to be able to use tabs that are just named persistent window configurations. So I added to the branch a new mode that can be used by `M-x list-tabs RTE'. Like `list-buffers' displays a list of buffers, `list-tabs' displays a list of named window configurations - the same list that can be displayed as tabs in the tab-bar when tab-bar-mode is enabled. Or another analogy of its look is like a widget displayed in the center of the screen when switching windows in a window manager. In the list of window configurations, usual keybindings are supported: RET -- select current line's window configuration. d -- mark that window configuration to be deleted, and move down. x -- delete marked window configurations. >> Keybindings for the tab-bar: >> C-TAB - switches to the next frame tab; >> S-C-TAB - switches to the previous frame tab. > > I don't think C-TAB and S-C-TAB exist on a typical tty keyboard. They > don't on the default Linux tty keyboard. Web browsers support alternative keys C- and C-. Are these keys available on a tty? >> Clicking on the plus sign adds a new window configuration tab to the tab-bar. > > Is there a keyboard equivalent? Yes, 'C-x 6 2' or `M-x make-tab RET'. And 'C-x 6 0' ('M-x delete-tab RET') deletes the current tab with its window configuration.