unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Tabs: Magically  Growing Tabs?
@ 2019-10-16 14:01 T.V Raman
  2019-10-16 14:20 ` T.V Raman
  2019-10-16 18:28 ` Juri Linkov
  0 siblings, 2 replies; 8+ messages in thread
From: T.V Raman @ 2019-10-16 14:01 UTC (permalink / raw)
  To: emacs-devel

I run with two tabs --- one where I am doing work, the other where I
am reading an ebook, C-tab makes this a very nice workflow.

So now  I have two tabs -- one called "Home" where I do work, one
called "EBooks" where I read. All is well for a few hours.
(length (tab-bar-tabs)) == 2

At some point, C-tab when in the Home tab switches to another tab
called "Home". When I investigate, 
(length (tab-bar-tabs)) == 3 or greater ---
I've seen the above number grow as high as 7 depending on when I check
--and have to close the extra tabs using C-x t 0.

Unclear as to what interaction triggres the creation of these tabs.

Note: I cannot see, so it's not possible to catch when this happen by
eyeballing the tab-bar line -- I only notice when C-tab doesn't do
what I expect.

-- 

-- 



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

* Re: Tabs: Magically  Growing Tabs?
  2019-10-16 14:01 Tabs: Magically Growing Tabs? T.V Raman
@ 2019-10-16 14:20 ` T.V Raman
  2019-10-16 18:28 ` Juri Linkov
  1 sibling, 0 replies; 8+ messages in thread
From: T.V Raman @ 2019-10-16 14:20 UTC (permalink / raw)
  To: emacs-devel

"T.V Raman" <raman@google.com> writes:
Emacs was started last evening, had  2 tabs.
(emacs-uptime) =="14 hours, 0 minutes, 40 seconds"

Now, there are 11 tabs, here is the value of tab-bar-tabs.
Notice the multiple "Home" tabs.

((tab (name . "Home")
      (explicit-name . t)
      (time . 1571234497)
      (wc . #<window-configuration>)
      (ws ((min-height . 4)
           (min-width . 10)
           (min-height-ignore . 3)
           (min-width-ignore . 2)
           (min-height-safe . 1)
           (min-width-safe . 2)
           (min-pixel-height . 76)
           (min-pixel-width . 80)
           (min-pixel-height-ignore . 57)
           (min-pixel-width-ignore . 16)
           (min-pixel-height-safe . 19)
           (min-pixel-width-safe . 16))
          leaf
          (pixel-width . 1912)
          (pixel-height . 1024)
          (total-width . 239)
          (total-height . 53)
          (normal-height . 1.0)
          (normal-width . 1.0)
          (buffer "Home"
                  (selected . t)
                  (hscroll . 0)
                  (fringes 0 0 nil nil)
                  (margins nil)
                  (scroll-bars nil 0 t nil 0 t nil)
                  (vscroll . 0)
                  (dedicated)
                  (point . 143)
                  (start . 1))
          (prev-buffers ("*mail*" 1 972) ("Home" 1 143))))
 (tab (name . "Home")
      (explicit-name)
      (time . 1571234554)
      (wc . #<window-configuration>)
      (ws ((min-height . 4)
           (min-width . 10)
           (min-height-ignore . 3)
           (min-width-ignore . 2)
           (min-height-safe . 1)
           (min-width-safe . 2)
           (min-pixel-height . 76)
           (min-pixel-width . 80)
           (min-pixel-height-ignore . 57)
           (min-pixel-width-ignore . 16)
           (min-pixel-height-safe . 19)
           (min-pixel-width-safe . 16))
          leaf
          (pixel-width . 1912)
          (pixel-height . 1024)
          (total-width . 239)
          (total-height . 54)
          (normal-height . 1.0)
          (normal-width . 1.0)
          (buffer "Home"
                  (selected . t)
                  (hscroll . 0)
                  (fringes 0 0 nil nil)
                  (margins nil)
                  (scroll-bars nil 0 t nil 0 t nil)
                  (vscroll . 0)
                  (dedicated)
                  (point . 143)
                  (start . 1))
          (prev-buffers ("Home" 1 143))))
 (tab (name . "Home")
      (explicit-name)
      (time . 1571234584)
      (wc . #<window-configuration>)
      (ws ((min-height . 4)
           (min-width . 10)
           (min-height-ignore . 3)
           (min-width-ignore . 2)
           (min-height-safe . 1)
           (min-width-safe . 2)
           (min-pixel-height . 76)
           (min-pixel-width . 80)
           (min-pixel-height-ignore . 57)
           (min-pixel-width-ignore . 16)
           (min-pixel-height-safe . 19)
           (min-pixel-width-safe . 16))
          leaf
          (pixel-width . 1912)
          (pixel-height . 1024)
          (total-width . 239)
          (total-height . 54)
          (normal-height . 1.0)
          (normal-width . 1.0)
          (buffer "Home"
                  (selected . t)
                  (hscroll . 0)
                  (fringes 0 0 nil nil)
                  (margins nil)
                  (scroll-bars nil 0 t nil 0 t nil)
                  (vscroll . 0)
                  (dedicated)
                  (point . 143)
                  (start . 1))
          (prev-buffers ("Home" 1 143))))
 (tab (name . "Business News - Latest Headlines on CNN Business - CNN")
      (explicit-name)
      (time . 1571234601)
      (wc . #<window-configuration>)
      (ws ((min-height . 4)
           (min-width . 10)
           (min-height-ignore . 3)
           (min-width-ignore . 2)
           (min-height-safe . 1)
           (min-width-safe . 2)
           (min-pixel-height . 76)
           (min-pixel-width . 80)
           (min-pixel-height-ignore . 57)
           (min-pixel-width-ignore . 16)
           (min-pixel-height-safe . 19)
           (min-pixel-width-safe . 16))
          leaf
          (pixel-width . 1912)
          (pixel-height . 1024)
          (total-width . 239)
          (total-height . 54)
          (normal-height . 1.0)
          (normal-width . 1.0)
          (buffer "Business News - Latest Headlines on CNN Business - CNN"
                  (selected . t)
                  (hscroll . 0)
                  (fringes 0 0 nil nil)
                  (margins nil)
                  (scroll-bars nil 0 t nil 0 t nil)
                  (vscroll . 0)
                  (dedicated)
                  (point . 154)
                  (start . 1))
          (prev-buffers ("Home" 1 143))))
 (tab (name . "Business News - Latest Headlines on CNN Business - CNN")
      (explicit-name)
      (time . 1571234633)
      (wc . #<window-configuration>)
      (ws ((min-height . 4)
           (min-width . 10)
           (min-height-ignore . 3)
           (min-width-ignore . 2)
           (min-height-safe . 1)
           (min-width-safe . 2)
           (min-pixel-height . 76)
           (min-pixel-width . 80)
           (min-pixel-height-ignore . 57)
           (min-pixel-width-ignore . 16)
           (min-pixel-height-safe . 19)
           (min-pixel-width-safe . 16))
          leaf
          (pixel-width . 1912)
          (pixel-height . 1024)
          (total-width . 239)
          (total-height . 54)
          (normal-height . 1.0)
          (normal-width . 1.0)
          (buffer "Business News - Latest Headlines on CNN Business - CNN"
                  (selected . t)
                  (hscroll . 0)
                  (fringes 0 0 nil nil)
                  (margins nil)
                  (scroll-bars nil 0 t nil 0 t nil)
                  (vscroll . 0)
                  (dedicated)
                  (point . 422)
                  (start . 1))
          (prev-buffers ("Business News - Latest Headlines on CNN Business - CNN" 1
                         154))))
 (tab (name . "Home")
      (explicit-name)
      (time . 1571234709)
      (wc . #<window-configuration>)
      (ws ((min-height . 4)
           (min-width . 20)
           (min-height-ignore . 4)
           (min-width-ignore . 4)
           (min-height-safe . 1)
           (min-width-safe . 4)
           (min-pixel-height . 76)
           (min-pixel-width . 160)
           (min-pixel-height-ignore . 76)
           (min-pixel-width-ignore . 32)
           (min-pixel-height-safe . 19)
           (min-pixel-width-safe . 32))
          hc
          (pixel-width . 1912)
          (pixel-height . 1024)
          (total-width . 239)
          (total-height . 54)
          (normal-height . 1.0)
          (normal-width . 1.0)
          (combination-limit)
          (leaf (pixel-width . 952)
                (pixel-height . 1024)
                (total-width . 119)
                (total-height . 54)
                (normal-height . 1.0)
                (normal-width . 0.5)
                (buffer "*Packages*"
                        (selected)
                        (hscroll . 0)
                        (fringes 0 0 nil nil)
                        (margins nil)
                        (scroll-bars nil 0 t nil 0 t nil)
                        (vscroll . 0)
                        (dedicated)
                        (point . 1)
                        (start . 1))
                (prev-buffers ("Home" 1 143)))
          (leaf (last . t)
                (pixel-width . 960)
                (pixel-height . 1024)
                (total-width . 120)
                (total-height . 54)
                (normal-height . 1.0)
                (normal-width . 0.5)
                (buffer "Home"
                        (selected . t)
                        (hscroll . 0)
                        (fringes 0 0 nil nil)
                        (margins nil)
                        (scroll-bars nil 0 t nil 0 t nil)
                        (vscroll . 0)
                        (dedicated)
                        (point . 143)
                        (start . 1)))))
 (tab (name . "Cricket news from ESPN Cricinfo.com")
      (explicit-name)
      (time . 1571234714)
      (wc . #<window-configuration>)
      (ws ((min-height . 4)
           (min-width . 10)
           (min-height-ignore . 3)
           (min-width-ignore . 2)
           (min-height-safe . 1)
           (min-width-safe . 2)
           (min-pixel-height . 76)
           (min-pixel-width . 80)
           (min-pixel-height-ignore . 57)
           (min-pixel-width-ignore . 16)
           (min-pixel-height-safe . 19)
           (min-pixel-width-safe . 16))
          leaf
          (pixel-width . 1912)
          (pixel-height . 1024)
          (total-width . 239)
          (total-height . 54)
          (normal-height . 1.0)
          (normal-width . 1.0)
          (buffer "Cricket news from ESPN Cricinfo.com"
                  (selected . t)
                  (hscroll . 0)
                  (fringes 0 0 nil nil)
                  (margins nil)
                  (scroll-bars nil 0 t nil 0 t nil)
                  (vscroll . 0)
                  (dedicated)
                  (point . 174)
                  (start . 1))
          (prev-buffers ("Home" 1 143))))
 (tab (name . "Cricket news from ESPN Cricinfo.com")
      (explicit-name)
      (time . 1571234830)
      (wc . #<window-configuration>)
      (ws ((min-height . 4)
           (min-width . 10)
           (min-height-ignore . 3)
           (min-width-ignore . 2)
           (min-height-safe . 1)
           (min-width-safe . 2)
           (min-pixel-height . 76)
           (min-pixel-width . 80)
           (min-pixel-height-ignore . 57)
           (min-pixel-width-ignore . 16)
           (min-pixel-height-safe . 19)
           (min-pixel-width-safe . 16))
          leaf
          (pixel-width . 1912)
          (pixel-height . 1014)
          (total-width . 239)
          (total-height . 53)
          (normal-height . 1.0)
          (normal-width . 1.0)
          (buffer "Cricket news from ESPN Cricinfo.com"
                  (selected . t)
                  (hscroll . 0)
                  (fringes 0 0 nil nil)
                  (margins nil)
                  (scroll-bars nil 0 t nil 0 t nil)
                  (vscroll . 0)
                  (dedicated)
                  (point . 1715)
                  (start . 1))
          (prev-buffers ("Cricket news from ESPN Cricinfo.com" 1 174))))
 (tab (name . "UnixToolTip")
      (explicit-name)
      (time . 1571234903)
      (wc . #<window-configuration>)
      (ws ((min-height . 4)
           (min-width . 10)
           (min-height-ignore . 2)
           (min-width-ignore . 2)
           (min-height-safe . 1)
           (min-width-safe . 2)
           (min-pixel-height . 76)
           (min-pixel-width . 80)
           (min-pixel-height-ignore . 38)
           (min-pixel-width-ignore . 16)
           (min-pixel-height-safe . 19)
           (min-pixel-width-safe . 16))
          leaf
          (pixel-width . 1912)
          (pixel-height . 1003)
          (total-width . 239)
          (total-height . 52)
          (normal-height . 1.0)
          (normal-width . 1.0)
          (buffer "UnixToolTip"
                  (selected . t)
                  (hscroll . 0)
                  (fringes 0 0 nil nil)
                  (margins nil)
                  (scroll-bars nil 0 t nil 0 t nil)
                  (vscroll . 0)
                  (dedicated)
                  (point . 234)
                  (start . 1))
          (prev-buffers ("(:home+@)" 1 1280) ("Home" 1 143))))
 (current-tab (name . "Home") (explicit-name))
 (tab (name . "MS")
      (explicit-name . t)
      (time . 1571233751)
      (wc . #<window-configuration>)
      (ws ((min-height . 4)
           (min-width . 10)
           (min-height-ignore . 4)
           (min-width-ignore . 2)
           (min-height-safe . 1)
           (min-width-safe . 2)
           (min-pixel-height . 76)
           (min-pixel-width . 80)
           (min-pixel-height-ignore . 76)
           (min-pixel-width-ignore . 16)
           (min-pixel-height-safe . 19)
           (min-pixel-width-safe . 16))
          leaf
          (pixel-width . 1912)
          (pixel-height . 1024)
          (total-width . 239)
          (total-height . 53)
          (normal-height . 1.0)
          (normal-width . 1.0)
          (buffer "TAOUP"
                  (selected . t)
                  (hscroll . 0)
                  (fringes 0 0 nil nil)
                  (margins nil)
                  (scroll-bars nil 0 t nil 0 t nil)
                  (vscroll . 0)
                  (dedicated)
                  (point . 1898762)
                  (start . 1896950))
          (prev-buffers ("TAOUP" 1
                         1)))))

> I run with two tabs --- one where I am doing work, the other where I
> am reading an ebook, C-tab makes this a very nice workflow.
>
> So now  I have two tabs -- one called "Home" where I do work, one
> called "EBooks" where I read. All is well for a few hours.
> (length (tab-bar-tabs)) == 2
>
> At some point, C-tab when in the Home tab switches to another tab
> called "Home". When I investigate, 
> (length (tab-bar-tabs)) == 3 or greater ---
> I've seen the above number grow as high as 7 depending on when I check
> --and have to close the extra tabs using C-x t 0.
>
> Unclear as to what interaction triggres the creation of these tabs.
>
> Note: I cannot see, so it's not possible to catch when this happen by
> eyeballing the tab-bar line -- I only notice when C-tab doesn't do
> what I expect.
>
> -- 

-- 



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

* Re: Tabs: Magically  Growing Tabs?
  2019-10-16 14:01 Tabs: Magically Growing Tabs? T.V Raman
  2019-10-16 14:20 ` T.V Raman
@ 2019-10-16 18:28 ` Juri Linkov
  2019-10-16 18:33   ` T.V Raman
  1 sibling, 1 reply; 8+ messages in thread
From: Juri Linkov @ 2019-10-16 18:28 UTC (permalink / raw)
  To: T.V Raman; +Cc: emacs-devel

Sorry, I tried everything but can't reproduce the problem.

Some "Home" tabs have the property explicit-name equal to t,
but duplicates have no explicit-name.

Could you add auditory notifications to emacspeak
to notify when the number of tabs grows?

One suitable place is to define a new function for
the variable tab-bar-tabs-function, then call
tab-bar-tabs from your function, and also to count tabs
when a tab command is called.

> I run with two tabs --- one where I am doing work, the other where I
> am reading an ebook, C-tab makes this a very nice workflow.
>
> So now  I have two tabs -- one called "Home" where I do work, one
> called "EBooks" where I read. All is well for a few hours.
> (length (tab-bar-tabs)) == 2
>
> At some point, C-tab when in the Home tab switches to another tab
> called "Home". When I investigate, 
> (length (tab-bar-tabs)) == 3 or greater ---
> I've seen the above number grow as high as 7 depending on when I check
> --and have to close the extra tabs using C-x t 0.
>
> Unclear as to what interaction triggres the creation of these tabs.
>
> Note: I cannot see, so it's not possible to catch when this happen by
> eyeballing the tab-bar line -- I only notice when C-tab doesn't do
> what I expect.



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

* Re: Tabs: Magically  Growing Tabs?
  2019-10-16 18:28 ` Juri Linkov
@ 2019-10-16 18:33   ` T.V Raman
  2019-10-16 19:17     ` Juri Linkov
  0 siblings, 1 reply; 8+ messages in thread
From: T.V Raman @ 2019-10-16 18:33 UTC (permalink / raw)
  To: juri; +Cc: raman, emacs-devel

Good idea, will try instrumenting that as you suggest.

I have a niggling suspicion that there is some interaction between eww
and tab-bar that might be causing this in my specific environment -- I
always have eww open pages in a new buffer, and set up emacspeak to
automatically do that by passing a prefix arg to the various eww
opener functions 
Juri Linkov writes:
 > Sorry, I tried everything but can't reproduce the problem.
 > 
 > Some "Home" tabs have the property explicit-name equal to t,
 > but duplicates have no explicit-name.
 > 
 > Could you add auditory notifications to emacspeak
 > to notify when the number of tabs grows?
 > 
 > One suitable place is to define a new function for
 > the variable tab-bar-tabs-function, then call
 > tab-bar-tabs from your function, and also to count tabs
 > when a tab command is called.
 > 
 > > I run with two tabs --- one where I am doing work, the other where I
 > > am reading an ebook, C-tab makes this a very nice workflow.
 > >
 > > So now  I have two tabs -- one called "Home" where I do work, one
 > > called "EBooks" where I read. All is well for a few hours.
 > > (length (tab-bar-tabs)) == 2
 > >
 > > At some point, C-tab when in the Home tab switches to another tab
 > > called "Home". When I investigate, 
 > > (length (tab-bar-tabs)) == 3 or greater ---
 > > I've seen the above number grow as high as 7 depending on when I check
 > > --and have to close the extra tabs using C-x t 0.
 > >
 > > Unclear as to what interaction triggres the creation of these tabs.
 > >
 > > Note: I cannot see, so it's not possible to catch when this happen by
 > > eyeballing the tab-bar line -- I only notice when C-tab doesn't do
 > > what I expect.

-- 
Id: kg:/m/0285kf1 

-- 
Id: kg:/m/0285kf1 



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

* Re: Tabs: Magically  Growing Tabs?
  2019-10-16 18:33   ` T.V Raman
@ 2019-10-16 19:17     ` Juri Linkov
  2019-10-16 20:45       ` T.V Raman
  0 siblings, 1 reply; 8+ messages in thread
From: Juri Linkov @ 2019-10-16 19:17 UTC (permalink / raw)
  To: T.V Raman; +Cc: emacs-devel

> I have a niggling suspicion that there is some interaction between eww
> and tab-bar that might be causing this in my specific environment -- I
> always have eww open pages in a new buffer, and set up emacspeak to
> automatically do that by passing a prefix arg to the various eww
> opener functions

Ah, this explains everything - recently we changed eww to open pages
in a new buffer in a new tab when tab-bar-mode is enabled.



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

* Re: Tabs: Magically  Growing Tabs?
  2019-10-16 19:17     ` Juri Linkov
@ 2019-10-16 20:45       ` T.V Raman
  2019-10-16 21:05         ` Juri Linkov
  0 siblings, 1 reply; 8+ messages in thread
From: T.V Raman @ 2019-10-16 20:45 UTC (permalink / raw)
  To: juri; +Cc: raman, emacs-devel

ok, will fix at the emacspeak end. Could we make this feature customizable?
Juri Linkov writes:
 > > I have a niggling suspicion that there is some interaction between eww
 > > and tab-bar that might be causing this in my specific environment -- I
 > > always have eww open pages in a new buffer, and set up emacspeak to
 > > automatically do that by passing a prefix arg to the various eww
 > > opener functions
 > 
 > Ah, this explains everything - recently we changed eww to open pages
 > in a new buffer in a new tab when tab-bar-mode is enabled.

-- 
Id: kg:/m/0285kf1 

-- 
Id: kg:/m/0285kf1 



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

* Re: Tabs: Magically  Growing Tabs?
  2019-10-16 20:45       ` T.V Raman
@ 2019-10-16 21:05         ` Juri Linkov
  2019-10-16 21:08           ` T.V Raman
  0 siblings, 1 reply; 8+ messages in thread
From: Juri Linkov @ 2019-10-16 21:05 UTC (permalink / raw)
  To: T.V Raman; +Cc: emacs-devel

> ok, will fix at the emacspeak end. Could we make this feature customizable?

We tried to avoid adding new options, but it seems now that
a new option with the name eww-browse-url-new-window-is-tab
still needs to be added instead of relying on heuristics
of tab-bar visibility.

>  > > I have a niggling suspicion that there is some interaction between eww
>  > > and tab-bar that might be causing this in my specific environment -- I
>  > > always have eww open pages in a new buffer, and set up emacspeak to
>  > > automatically do that by passing a prefix arg to the various eww
>  > > opener functions
>  > 
>  > Ah, this explains everything - recently we changed eww to open pages
>  > in a new buffer in a new tab when tab-bar-mode is enabled.



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

* Re: Tabs: Magically  Growing Tabs?
  2019-10-16 21:05         ` Juri Linkov
@ 2019-10-16 21:08           ` T.V Raman
  0 siblings, 0 replies; 8+ messages in thread
From: T.V Raman @ 2019-10-16 21:08 UTC (permalink / raw)
  To: juri; +Cc: raman, emacs-devel

Yes.

1. I use EWW a lot.
2. New tab gets created when I open a new page.
3. To prevent emacs from getting "too big", I kill short-lived EWW
buffers with "Q" --  this is how the eww buffer goes away but the tab
remains 
Juri Linkov writes:
 > > ok, will fix at the emacspeak end. Could we make this feature customizable?
 > 
 > We tried to avoid adding new options, but it seems now that
 > a new option with the name eww-browse-url-new-window-is-tab
 > still needs to be added instead of relying on heuristics
 > of tab-bar visibility.
 > 
 > >  > > I have a niggling suspicion that there is some interaction between eww
 > >  > > and tab-bar that might be causing this in my specific environment -- I
 > >  > > always have eww open pages in a new buffer, and set up emacspeak to
 > >  > > automatically do that by passing a prefix arg to the various eww
 > >  > > opener functions
 > >  > 
 > >  > Ah, this explains everything - recently we changed eww to open pages
 > >  > in a new buffer in a new tab when tab-bar-mode is enabled.

-- 
Id: kg:/m/0285kf1 

-- 
Id: kg:/m/0285kf1 



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

end of thread, other threads:[~2019-10-16 21:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-16 14:01 Tabs: Magically Growing Tabs? T.V Raman
2019-10-16 14:20 ` T.V Raman
2019-10-16 18:28 ` Juri Linkov
2019-10-16 18:33   ` T.V Raman
2019-10-16 19:17     ` Juri Linkov
2019-10-16 20:45       ` T.V Raman
2019-10-16 21:05         ` Juri Linkov
2019-10-16 21:08           ` T.V Raman

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