From: Martin Rudalics Date: Mon, 10 Mar 2025 17:42:00 +0000 (+0100) Subject: Fix setting dedicatedness of WINDOW in 'window--display-buffer' (Bug#76911) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e63a876af7e06e77308e6eaca09c2bb96bd55d37;p=emacs.git Fix setting dedicatedness of WINDOW in 'window--display-buffer' (Bug#76911) * lisp/window.el (window--display-buffer): Consult WINDOW's 'window-side' parameter in order to find out whether it is a side window (Bug#76911). (cherry picked from commit fd4de89460e20a1bbe0229f2e8c125f9f33bb088) --- diff --git a/lisp/window.el b/lisp/window.el index 1ecd2325ee5..d5672ee6a22 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -7638,7 +7638,8 @@ Return WINDOW if BUFFER and WINDOW are live." ;; Don't dedicate WINDOW if it is dedicated because it shows ;; BUFFER already or it is reused and is not a side window. ((or (window-dedicated-p window) - (and (eq type 'reuse) (not (eq (cdr alist-dedicated) 'side))))) + (and (eq type 'reuse) + (not (window-parameter window 'window-side))))) ;; Otherwise, if ALIST contains a 'dedicated' entry, use that ;; entry's value (which may be nil). (alist-dedicated