emacs-vdiff
emacs-vdiff copied to clipboard
Swaps visual position of buffers
I just had buffer A on the left of my emacs window, and buffer B on the right. Starting from buffer B I executed vdiff-buffers. It correctly guessed the first buffer to use was B, and the second A. The result was that B was on the left and A on the right.
This is expected. vdiff will use your current buffer as the default choice for the left-hand side buffer and whatever it finds in the next window (according to next-window) as a default choice for the right-hand window. You can certainly override these defaults.
Are you suggesting that it should work differently in this case? I suppose I could detect a split window layout and assume that those are the buffers you want in that arrangement, but that doesn't seem foolproof either.