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: [PATCH] Enable persistent naming for tabs Date: Sun, 20 Oct 2019 19:17:40 +0300 Organization: LINKOV.NET Message-ID: <87eez7la3v.fsf@mail.linkov.net> References: <87r23lpg22.fsf@cochranmail.com> <871rvktgyj.fsf@mail.linkov.net> <87ftjz6v4d.fsf@cochranmail.com> <87lftoiwfl.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="151303"; 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: Robert Cochran Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 20 18:35:47 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 1iMEBH-000dDR-F4 for ged-emacs-devel@m.gmane.org; Sun, 20 Oct 2019 18:35:47 +0200 Original-Received: from localhost ([::1]:40494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMEBF-0006Rj-S1 for ged-emacs-devel@m.gmane.org; Sun, 20 Oct 2019 12:35:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33270) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iME8h-0003cJ-MP for emacs-devel@gnu.org; Sun, 20 Oct 2019 12:33:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iME8f-0000Jw-N8 for emacs-devel@gnu.org; Sun, 20 Oct 2019 12:33:07 -0400 Original-Received: from cadetblue.birch.relay.mailchannels.net ([23.83.209.28]:14868) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iME8d-0000HI-Sr for emacs-devel@gnu.org; Sun, 20 Oct 2019 12:33:05 -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 C0349E0716; Sun, 20 Oct 2019 16:33:00 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a73.g.dreamhost.com (100-96-84-88.trex.outbound.svc.cluster.local [100.96.84.88]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 6B96CE06EB; Sun, 20 Oct 2019 16:33:00 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a73.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); Sun, 20 Oct 2019 16:33:00 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Daffy-Industry: 7372a9ad1b4194e8_1571589180631_3382306441 X-MC-Loop-Signature: 1571589180631:298199401 X-MC-Ingress-Time: 1571589180631 Original-Received: from pdx1-sub0-mail-a73.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a73.g.dreamhost.com (Postfix) with ESMTP id EEEBE82C0F; Sun, 20 Oct 2019 09:32:55 -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=95Xt/WCuv70oK2u41u81b7KKsxI=; b= WdnGV3Qgi7U3zb08ZNLlT0pZqNnhR2HNa6EfSy4+kvYHO5hN7kQqE/1asj+QMXMm ERUeSRi2i5LxUR0nkskfBQVObck0r73wESq2UTPbSt4in/uxjLSL96QgYKQr6yF9 2vZiVOVQWj+XNEiBqEVQ3pSjxCPfvMLca/2+zez7O8E= Original-Received: from mail.jurta.org (m91-129-98-153.cust.tele2.ee [91.129.98.153]) (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-a73.g.dreamhost.com (Postfix) with ESMTPSA id 5CCFD82B75; Sun, 20 Oct 2019 09:32:53 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a73 In-Reply-To: <87lftoiwfl.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 13 Oct 2019 22:53:18 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 23.83.209.28 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:241253 Archived-At: >> Something else I would like input on - if you try to close the only tab >> in the frame, then it loses its explicit name if it has one. This is >> because the tab closing function blindly deletes the entry from the tabs >> alist, and hence the explicit-name attribute. What should we do? I think >> we need to signal user-error or similar in interactive contexts, but >> what about when calling from Lisp programs? > > Indeed, signaling user-error when closing a single tab would be > the right thing even when called programmatically, because the caller > can check the number of tabs before calling tab-bar-close-tab. Actually web browsers allow closing the last tab, so we should not prohibit closing too. What they do after closing, varies: some close the whole application after closing the last tab - doing the same in Emacs makes no sense. Then some of them show the default page as in the new tab - and this is what we could do.