Don't scan frames other than current in popup

This accidentally reuses windows in other frames, especially when there are multiple compliation buffers.
This commit is contained in:
Amos Bird 2018-11-27 22:08:35 +08:00 committed by GitHub
parent abc7ca84d8
commit 3b67338b4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -444,7 +444,7 @@ Accepts the same arguments as `display-buffer-in-side-window'. You must set
(lambda (window) (lambda (window)
(and (eq (window-parameter window 'window-side) side) (and (eq (window-parameter window 'window-side) side)
(eq (window-parameter window 'window-vslot) vslot))) (eq (window-parameter window 'window-vslot) vslot)))
nil t)) nil))
(reversed (window--sides-reverse-on-frame-p (selected-frame))) (reversed (window--sides-reverse-on-frame-p (selected-frame)))
(windows (windows
(cond ((window-live-p major) (cond ((window-live-p major)