bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#38354: 27.0.50; Implement display action display-buffer-in-tab


From: martin rudalics
Subject: bug#38354: 27.0.50; Implement display action display-buffer-in-tab
Date: Fri, 6 Dec 2019 08:37:10 +0100

> Still unclear what window currently code prefers in case of two
> or more windows displaying the same buffer, or when the buffer
> is displayed in windows of two or more frames.  What window/frame it
> reuses?  Just the first found?

The order is determined by 'get-buffer-window-list' which in its turn
relies on 'window-list-1'.

> Is it possible to express such
> preferences for multiple windows/frames in display-buffer-alist?

It tries the selected window first and a window on the selected frame
afterwards.  If both fail it respects 'reusable-frames'.

>> OK.  But what if another action adds something to such a tab and we
>> then quit the window.  Or is such a scenario impossible?
>
> Does a similar situation happen in case of window quitting?
> Then the same logic could be reused for tab quitting.
> When another buffer is displayed in the same window,
> then quit-window doesn't delete the window with another buffer?

Correct.  'quit-restore-window' is quite sensitive wrt such changes
and refrains from doing more drastic things (like deleting a window or
frame) when the user has switched buffers in between.

martin





reply via email to

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