Fork me on GitHub
#emacs
<
2016-08-07
>
anmonteiro22:08:35

any reason pop-to-buffer would be creating a new frame in my emacs?

anmonteiro22:08:47

and what would be the solution to stop it from doing that?

anmonteiro22:08:33

I don’t want new frames to be created, preferably just split windows

radon22:08:06

That doesn’t sound like default functionality. Are you using a pre-configured setup like Spacemacs or Prelude?

radon22:08:33

Which Emacs distro and OS?

anmonteiro22:08:12

I’m using macOS Sierra

anmonteiro22:08:26

and emacs master 🙂

radon22:08:17

I thought Sierra was not released yet?

anmonteiro22:08:20

I don’t really know how to repro it, it really only happens in certain cases

anmonteiro22:08:25

yeah, it’s the public beta

anmonteiro22:08:15

specifically in haskell interactive mode

radon22:08:10

C-h f pop-to-buffer

radon22:08:11

If the window to show BUFFER is not on the selected
frame, raise that window's frame and give it input focus.

radon22:08:31

It sounds like the buffer is on a different frame to start with, and pop-to-buffer is just respecting that.

radon22:08:46

You would want to look at whatever is creating the buffer, probably.

anmonteiro22:08:58

actually the problem seems to be switch-to-buffer-other-window