diff options
author | Neal <nealsid@users.noreply.github.com> | 2016-04-30 15:21:00 -0400 |
---|---|---|
committer | Bozhidar Batsov <bozhidar.batsov@gmail.com> | 2016-04-30 12:21:00 -0700 |
commit | 6938848d62225e91f1a02321c198d49312b60a0d (patch) | |
tree | f054661366bec0134a6d25169cfb00a928728943 /cider-popup.el | |
parent | 703df27f3f1d86c03b680bf91ef217fdd616593d (diff) |
Fix cider-popup-buffer-display with multiple frames (#1708)
If you set cider-popup-buffer-display to nil, but are using multiple
frames, the call to display-buffer doesn't currently set the required
extra parameter in the alist to stop Emacs from switching to that
frame. This small PR is a bugfix for that.
Diffstat (limited to 'cider-popup.el')
-rw-r--r-- | cider-popup.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cider-popup.el b/cider-popup.el index b5976675..46e18104 100644 --- a/cider-popup.el +++ b/cider-popup.el @@ -65,6 +65,8 @@ If SELECT is non-nil, select the BUFFER." ;; bound to that). (unless (eq window (selected-window)) ;; Non nil `inhibit-same-window' ensures that current window is not covered + ;; Non nil `inhibit-switch-frame' ensures that the other frame is not selected + ;; if that's where the buffer is being shown. (funcall (if select #'pop-to-buffer #'display-buffer) buffer `(nil . ((inhibit-same-window . ,pop-up-windows) (reusable-frames . visible)))))) |