[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Enable persistent naming for tabs

From: Juri Linkov
Subject: Re: [PATCH] Enable persistent naming for tabs
Date: Sun, 20 Oct 2019 19:17:40 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)

>> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]