I'm a new Emacs user, and learning how to split the window vertically and cycling the buffers in each pane.
However, after opening a new file in one pane, next-buffer does not cycle through this file in the other pane, but only after it has appeared once in the new pane. This can be reproduced as follows:
Open 2 files A and B in a new emacs session.
Split the windows vertically using 'split-window-right'.
'next-buffer' cycles through A and B in PaneLeft and PaneRight.
Open file C in PaneLeft.
'next-buffer' cycles through A, B, C in PaneLeft.
Ensure C is focused in PaneLeft, then switch to PaneRight. 'next-buffer' only cycles through A and B in PaneRight. It skips C possibly because C is already visible in PaneLeft.
Switch back to PaneLeft, and ensure A or B is focused in PaneLeft.
Switch back to PaneRight, now 'next-buffer' cycles through A, B, and C, regardless of what is visible in PaneLeft.
Is this the intended behaviour? How would I get it to work as I intended?
Note: I'm running without any custom extensions, and my .emacs is pretty much empty.
next-buffer
avoids showing a buffer already visible in other window, that is intended behavior (don't know if there's some interactive replacement fornext-buffer
without this property) – Anton Kovalenko