diff options
| author | Juri Linkov | 2020-03-10 01:39:05 +0200 |
|---|---|---|
| committer | Juri Linkov | 2020-03-10 01:39:05 +0200 |
| commit | a98c8f5a098cf646c282be67cce9fb7999d353d7 (patch) | |
| tree | 927b65fd6de0b0a3c0e263933fbc7ef4ffc50b19 | |
| parent | 199acd6270ea904e36846984887bad056d40f70b (diff) | |
| download | emacs-a98c8f5a098cf646c282be67cce9fb7999d353d7.tar.gz emacs-a98c8f5a098cf646c282be67cce9fb7999d353d7.zip | |
Improve new-frame logic of windmove-display-in-direction (bug#39875)
* lisp/windmove.el (windmove-display-in-direction):
For frame-based logic use code similar to display-buffer-pop-up-frame.
| -rw-r--r-- | lisp/windmove.el | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/windmove.el b/lisp/windmove.el index 94d2b75210d..f96383197bd 100644 --- a/lisp/windmove.el +++ b/lisp/windmove.el | |||
| @@ -475,10 +475,14 @@ When `switch-to-buffer-obey-display-actions' is non-nil, | |||
| 475 | (setq type 'tab) | 475 | (setq type 'tab) |
| 476 | (selected-window)) | 476 | (selected-window)) |
| 477 | ((eq dir 'new-frame) | 477 | ((eq dir 'new-frame) |
| 478 | (window--maybe-raise-frame | 478 | (let* ((params (cdr (assq 'pop-up-frame-parameters alist))) |
| 479 | (make-frame-on-current-monitor pop-up-frame-alist)) | 479 | (pop-up-frame-alist (append params pop-up-frame-alist)) |
| 480 | (setq type 'frame) | 480 | (frame (make-frame-on-current-monitor |
| 481 | (selected-window)) | 481 | pop-up-frame-alist))) |
| 482 | (unless (cdr (assq 'inhibit-switch-frame alist)) | ||
| 483 | (window--maybe-raise-frame frame)) | ||
| 484 | (setq type 'frame) | ||
| 485 | (frame-selected-window frame))) | ||
| 482 | ((eq dir 'same-window) | 486 | ((eq dir 'same-window) |
| 483 | (selected-window)) | 487 | (selected-window)) |
| 484 | (t (window-in-direction | 488 | (t (window-in-direction |