In short, the question is: in the window, how to quickly switch to the buffer previously visited in this window, even if it is already open in another window?
The following is a more detailed description.
Usually, to switch the window to the previous buffer, it is simply typed C-x b RET. That is, the default argument switch-to-buffer(or ido-switch-buffer) is the previous buffer.
This, however, is not the case when this (previous) buffer is already shown in another window. This is what bothers me.
Consider an example. Suppose I have three buffers ( A, Band C), and two windows showing buffers Aand B( Cnot visible at this point).
Then I also open the buffer Ain the second window. So now I have the buffer Ashown in both windows. Then I switch back ( C-x b RET) to B. After that, it C-x b RETwill lead me not to A, but to C, because it is Aalready displayed in another window.
How to make C-x b RETmore consistent?
Update
After this problem was solved, I realized that I needed more, namely: for a point position, I need to remember each window, not the buffer. Fortunately, there are ready-made solutions:
They are very similar; for a discussion of the differences see here .
source
share