This is a follow up to this emacs stackexchange question:
Given split windows like this:
|------|-------|
|1 |2 |
| | |
|------|-------|
|3 |4 |
| | |
|------|-------|
With C-x 0 (or the command delete-window) we can delete a window. For example, with point on window-1 if we execute C-x 0 then window-1 will be deleted. But how to control the direction of collapse i.e. - how to pick between the following two possible ways of deleting window-1:
|------|-------|
|2 |
| |
|------|-------|
|3 |4 |
| | |
|------|-------|
Or,
|------|-------|
|3 |2 |
| | |
| |-------|
| |4 |
| | |
|------|-------|