Fork me on GitHub
#spacemacs
<
2019-01-24
>
Mario C.16:01:36

How do I get an ediff session only on one side of the window?

Mario C.16:01:51

Normally I want the opposite behavior. To have the ediff session take up the whole emacs window. And it never happens. Always opens up 3 small windows in one buffer. Now that I want this behavior it suddenly decides to just hog up the whole window lol

Mario C.16:01:56

| window A | ediff session here |

ag18:01:17

I am really confused here… Maybe you’re mixing up terms: buffer, window and frame and what they mean in Emacs, not sure

Mario C.19:01:11

I know a window can have many buffers. I am not too sure what a frame is

ag19:01:14

frame is what holds windows (I know it’s opposite of what we know from other apps). It’s been historically called that way. So if you for example start Spacemacs and do something like SPC w V - it will split a single window into two. One frame containing two windows. if you do SPC F n - it will create a new frame

ag19:01:10

now to answer your question… you want to have ediff session to be contained in a single window. Even if that’s possible, probably it would be unwise to have it like that. Ediff (in its simplest form) has basically: side-A, side-B and ediff-control - 3 windows.

ag19:01:39

So if you open new ediff session it will create new window configuration

ag19:01:52

and that’s normal.

ag19:01:33

if that annoys you maybe you can create it in a different frame - but I don’t think it would be less annoying, unless you have multiple monitors

ag19:01:58

tbh. In the beginning I was relying on Ediff all the time, but then slowly I started using magit’s excellent diff view more and more. And now I very rarely fire up ediff (sometimes it comes handy) and it’s so easy to start it - just press e in a magit diff

Mario C.19:01:05

When I would run an ediff session it would open it like this. | Window 1 | Window 2 | Window 3 | | | Window 4 |

Mario C.19:01:13

where window 2-4 are the ediff

Mario C.19:01:43

I guess what I am asking is how do I keep it from taking over the entire frame

ag19:01:21

¯\(ツ)

Mario C.19:01:28

It used to always open the way I am describing but idk what I am doing differently now. And the toggle multiframe was kinda buggy and not really what I wanted. Oh well its not a big deal but it would have made my life easier lol.