Commit 9578c2aa authored by Stephen Leake's avatar Stephen Leake

Fix a simple bug in display-buffer-use-some-frame

* lisp/window.el (display-buffer-use-some-frame): Simplify the
predicate, fix TYPE arg to window--display-buffer.
parent 0f9be727
Pipeline #363 failed with stage
in 4 seconds
...@@ -7114,9 +7114,7 @@ that allows the selected frame)." ...@@ -7114,9 +7114,7 @@ that allows the selected frame)."
(or (cdr (assq 'frame-predicate alist)) (or (cdr (assq 'frame-predicate alist))
(lambda (frame) (lambda (frame)
(and (not (eq frame (selected-frame))) (and (not (eq frame (selected-frame)))
(not (window-dedicated-p (get-lru-window frame)))))
(or (get-lru-window frame)
(frame-first-window frame))))))))
(frame (car (filtered-frame-list predicate))) (frame (car (filtered-frame-list predicate)))
(window (window
(and frame (and frame
...@@ -7125,7 +7123,7 @@ that allows the selected frame)." ...@@ -7125,7 +7123,7 @@ that allows the selected frame)."
(when window (when window
(prog1 (prog1
(window--display-buffer (window--display-buffer
buffer window 'frame alist display-buffer-mark-dedicated) buffer window 'reuse alist display-buffer-mark-dedicated)
(unless (cdr (assq 'inhibit-switch-frame alist)) (unless (cdr (assq 'inhibit-switch-frame alist))
(window--maybe-raise-frame frame)))))) (window--maybe-raise-frame frame))))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment