unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#44397: 28.0.50; tab-bar-mode: tab-switcher creates a new tab every time
@ 2020-11-02 18:03 Zhiwei Chen
  2020-11-02 21:30 ` Juri Linkov
  0 siblings, 1 reply; 4+ messages in thread
From: Zhiwei Chen @ 2020-11-02 18:03 UTC (permalink / raw)
  To: 44397

,----[ C-h f tab-switcher RET ]
| tab-switcher is an interactive compiled Lisp function in ‘tab-bar.el’.
| 
| It is bound to SPC t i, <normal-state> SPC t i.
| 
| (tab-switcher)
| 
|   Probably introduced at or before Emacs version 27.1.
| 
| Display a list of named window configurations.
| The list is displayed in the buffer ‘*Tabs*’.
| It’s placed in the center of the frame to resemble a window list
| displayed by a window switcher in some window managers on Alt+Tab.
| 
| In this list of window configurations you can delete or select them.
| Type ? after invocation to get help on commands available.
| Type q to remove the list of window configurations from the display.
| 
| The first column shows ‘D’ for a window configuration you have
| marked for deletion.
`----

The docstring doesn't say it will create a new tab but a
`tab-bar-new-tab' call will be made eventually. It's like that `ibuffer'
will create a new (dummy) buffer (not the special *Ibuffer* buffer). Any
reasons on that?

-- 
Zhiwei Chen





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#44397: 28.0.50; tab-bar-mode: tab-switcher creates a new tab every time
  2020-11-02 18:03 bug#44397: 28.0.50; tab-bar-mode: tab-switcher creates a new tab every time Zhiwei Chen
@ 2020-11-02 21:30 ` Juri Linkov
  2020-11-03  9:37   ` Condy Chen
  0 siblings, 1 reply; 4+ messages in thread
From: Juri Linkov @ 2020-11-02 21:30 UTC (permalink / raw)
  To: Zhiwei Chen; +Cc: 44397

> ,----[ C-h f tab-switcher RET ]
> The docstring doesn't say it will create a new tab but a
> `tab-bar-new-tab' call will be made eventually. It's like that `ibuffer'
> will create a new (dummy) buffer (not the special *Ibuffer* buffer). Any
> reasons on that?

`ibuffer' is a good analogy: it creates the special *Ibuffer* buffer,
and the same way `tab-switcher' creates the special *Tabs* tab.

I agree that the docstring should say that it creates a new tab,
even though `ibuffer' doesn't say that it creates a new buffer.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#44397: 28.0.50; tab-bar-mode: tab-switcher creates a new tab every time
  2020-11-02 21:30 ` Juri Linkov
@ 2020-11-03  9:37   ` Condy Chen
  2020-11-03 19:23     ` Juri Linkov
  0 siblings, 1 reply; 4+ messages in thread
From: Condy Chen @ 2020-11-03  9:37 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 44397

> `ibuffer' is a good analogy: it creates the special *Ibuffer* buffer,
> and the same way `tab-switcher' creates the special *Tabs* tab.


The problem is `tab-switcher' never reuses the *Tabs* tab and always create a new one. After N `tab-switcher' calls, there are N additional tabs created if user has not deleted anyone.  

> I agree that the docstring should say that it creates a new tab,
> even though `ibuffer' doesn't say that it creates a new buffer.



Looks like the behavisor is expected?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#44397: 28.0.50; tab-bar-mode: tab-switcher creates a new tab every time
  2020-11-03  9:37   ` Condy Chen
@ 2020-11-03 19:23     ` Juri Linkov
  0 siblings, 0 replies; 4+ messages in thread
From: Juri Linkov @ 2020-11-03 19:23 UTC (permalink / raw)
  To: Condy Chen; +Cc: 44397

merge 44397 38624
thanks

>> `ibuffer' is a good analogy: it creates the special *Ibuffer* buffer,
>> and the same way `tab-switcher' creates the special *Tabs* tab.
>
> The problem is `tab-switcher' never reuses the *Tabs* tab and always
> create a new one.  After N `tab-switcher' calls, there are
> N additional tabs created if user has not deleted anyone.
>
>> I agree that the docstring should say that it creates a new tab,
>> even though `ibuffer' doesn't say that it creates a new buffer.
>
> Looks like the behavisor is expected?

It seems what you need is not tab-switcher, but the exact analog of
`ibuffer' to manage tabs the same way as `ibuffer' manages buffers.

Please see https://debbugs.gnu.org/38680 and https://debbugs.gnu.org/38624
where such `tab-list' is being developed.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-03 19:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-02 18:03 bug#44397: 28.0.50; tab-bar-mode: tab-switcher creates a new tab every time Zhiwei Chen
2020-11-02 21:30 ` Juri Linkov
2020-11-03  9:37   ` Condy Chen
2020-11-03 19:23     ` Juri Linkov

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