Skip to content

Commit

Permalink
Workaround for ECB advicing of switch-to-buffer-other-window which ca…
Browse files Browse the repository at this point in the history
…uses it to return nil rather than the buffer
  • Loading branch information
Matthew Willson committed Sep 17, 2012
1 parent 4153a5d commit 2b9b462
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nrepl.el
Expand Up @@ -1578,7 +1578,12 @@ under point, prompts for a var."
;;; client
(defun nrepl-create-nrepl-buffer (process)
(nrepl-init-repl-buffer process
(switch-to-buffer-other-window (generate-new-buffer-name "*nrepl*"))))
(let ((buf (generate-new-buffer-name "*nrepl*")))
(switch-to-buffer-other-window buf)
buf
)
)
)

(defun nrepl-new-session-handler (process &optional create-nrepl-buffer-p)
(lexical-let ((process process)
Expand Down

0 comments on commit 2b9b462

Please sign in to comment.