Reputation: 821
I have two frames of the same Emacs instance (got them by C-x 5 2
) and a file opened in one of these frames. Then I try to show this file in a buffer in another frame (by C-x b
) and nothing happens.
Actually, I think it shows this file in a buffer in the first frame, but this is not what I want it to do. I want it to show this buffer in both frames.
When there is only one frame and some windows in it, opening one buffer in different windows is no problem. I want the same behaviour but with several frames.
Upvotes: 2
Views: 278
Reputation: 9380
Most likely you are using iswitch, as what you describe is its default behavior.
You can change it by doing M-x customize-variable RET iswitchb-default-method
. probably you want to choose option samewindow
The ido equivalent variable , in case you are using it, is ido-default-buffer-method
(ido defaults to raise-frame
, that does not match with your observed behavior).
You may find if you are using one or the other using the way @Olaf describes.
Upvotes: 2
Reputation: 74028
Maybe, you have C-x b redefined. I have the same behaviour with iswitch-buffer
. But when I enter M-x switch-to-buffer, it shows the buffer in the second window.
You can find out, which command is executed with C-h c C-x b.
Upvotes: 0