emacs-devel
[Top][All Lists]
Advanced

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

Re: tab-bar-mode new tab hook?


From: Juri Linkov
Subject: Re: tab-bar-mode new tab hook?
Date: Tue, 26 Apr 2022 18:48:08 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)

> I imagine you didn't intend for it, but the fact that tab-bar-mode
> manages its own buffer-list frame-parameter per tab makes it perfectly
> suited for the purpose of tabs being used as workspaces.

The intention was to make tabs as a light-weigh version of frames,
so like every frame uses own frame-local buffer-list, switching tabs
updates frame buffer-list to maintain a tab as a separate frame.

> I just found `tab-bar-tab-post-open-functions', which should do
> exactly what I need.

I still don't understand why you need to run a hook only on opening
a new tab, and not on switching tabs, to update frame parameters,
but glad to hear that the existing hook does what you need.



reply via email to

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