Sure. But any such function could be used in another context as well.
> This does not mean necessarly only commuting to other buffer, or commuting
> to other window; in order to make a tab that does such a commutation like
> in other text editors, particular lisp functions should be defined for the
> events of that tab.
As mentioned before, we could easily add menu- or toolbar items which
stand for "saving the current window configuration" or "restoring a
previously saved window configuration". I can neither see why such
actions should be exclusively tied to tabs nor why tabs are very suited
I give you an example that I would like to have in emacs.
I wish to be able define a tab that does so:
1. at initialization it starts a grep and looks for something in background
2. The 'show event should commute to the buffer *grep*
3. when grep finds something, and the tab is hidden , the tab widget to change the color
4. The 'close event should kill the *grep* buffer, and the process , if it had not finished yet
Could you do this using buttons in toolbar or menubar, as you insist ?