I usually work switching between several buffers; and I usually choose another buffer to move to with C-x b <name of buffer>. This is fine. But if I choose a buffer from the "Buffers" menu, then it opens in a new frame, which I don't want. How do I prevent Emacs from opening a buffer in a new frame - is this menubar behaviour, or buffers behaviour?
I'm using:
GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2014-03-08 on lamiak, modified by Debian
in Ubuntu 14.04
menu-bar-select-buffer-function? (Find out viaC-h v menu-bar-select-buffer-function RET.) I'm running Emacs 24.3 as well, and for me it isswitch-to-bufferwhich displays buffers in the selected window (which seems to be the behavior you want). - itsjeydemacs -Q(no init file)? If not, recursively bisect your init file until you find the culprit code. That is quick to do. That's the general way to proceed. In this case, perhaps you will discover that your init file is just settingmenu-bar-select-buffer-functionor something, but it is still the way to go, to find where you are shooting yourself in the foot. - Drewmenu-bar+which redefines several variables, includingmenu-bar-select-buffer-function. So I redefined that variable right back with asetqstatement. And now it's all fine. - Alasdair