From: Juri Linkov <juri@linkov.net>
To: Robert Cochran <robert-emacs@cochranmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH] Enable persistent naming for tabs
Date: Sun, 20 Oct 2019 19:17:40 +0300 [thread overview]
Message-ID: <87eez7la3v.fsf@mail.linkov.net> (raw)
In-Reply-To: <87lftoiwfl.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 13 Oct 2019 22:53:18 +0300")
>> 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.
next prev parent reply other threads:[~2019-10-20 16:17 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-10 1:03 [PATCH] Enable persistent naming for tabs Robert Cochran
2019-10-10 21:43 ` Juri Linkov
[not found] ` <87ftjz6v4d.fsf@cochranmail.com>
2019-10-13 19:53 ` Juri Linkov
2019-10-15 21:45 ` Juri Linkov
2019-10-20 16:17 ` Juri Linkov [this message]
2019-10-20 23:54 ` T.V Raman
2019-10-21 21:34 ` Juri Linkov
2019-10-23 16:22 ` Robert Cochran
2019-10-23 20:41 ` Juri Linkov
2019-10-25 15:47 ` Robert Cochran
2019-10-25 16:01 ` Robert Cochran
2019-11-03 22:08 ` Robert Cochran
2019-11-03 22:37 ` Juri Linkov
2019-10-26 21:46 ` Juri Linkov
2019-10-30 18:35 ` Robert Cochran
2019-10-30 21:52 ` Juri Linkov
2019-10-30 23:05 ` Juri Linkov
2019-10-31 1:50 ` Robert Cochran
2019-10-31 21:17 ` Juri Linkov
2019-10-27 23:10 ` Juri Linkov
-- strict thread matches above, loose matches on Subject: below --
2019-10-08 22:26 Robert Cochran
2019-10-09 16:02 ` Eli Zaretskii
2019-10-09 22:58 ` Juri Linkov
2019-10-23 20:53 ` Kalman Reti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87eez7la3v.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=emacs-devel@gnu.org \
--cc=robert-emacs@cochranmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).