Ignore dedicated windows in 'display-buffer-reuse-mode-window'
Ignore the dedicated windows unless the dedicated window is already displaying the buffer-to-be-displayed. In that case, the window may be reused, according to the setting of 'inhibit-same-window'. * lisp/window.el (display-buffer-reuse-mode-window): Check 'window-dedicated-p' before pushing the candidate window onto the stack. (Bug#76216)
This commit is contained in:
parent
cabbb36ae1
commit
b6efedd66a
1 changed files with 2 additions and 0 deletions
|
@ -8492,6 +8492,8 @@ indirectly called by the latter."
|
|||
(cond ((memq major-mode allowed-modes) 'same)
|
||||
((derived-mode-p allowed-modes) 'derived)))))
|
||||
(when (and mode?
|
||||
(or (not (window-dedicated-p window))
|
||||
(eq buffer (window-buffer window)))
|
||||
(not (and inhibit-same-window-p
|
||||
(eq window curwin))))
|
||||
(push window (if (eq curframe (window-frame window))
|
||||
|
|
Loading…
Add table
Reference in a new issue