I have used emacs for years and am accustomed to having emacs open a selected file in the same window that dired is executed in. In recent revisions, when dired is executed with say 2 windows open, the file selected will be displayed in the alternate window from dired. How can I set up emacs to use the same window to display the file as died (allowing me to look at two files simultaneously--the way emacs used to work)?
As per the comments above, check C-hkRET when in dired to see what RET is bound to (or similarly if you are using another key).
dired-find-file
usesswitch-to-buffer
which could cause the buffer to open in another window:That seems less likely to be the issue, though.
edit: Ah, you're using the mouse. It's often good to explicitly say that in questions about Emacs, because most Emacs users rarely touch the mouse.
The same answer applies, however: From dired, type C-hk and then the 'key'-binding you are using (in this case clicking mouse button 1), which tells us:
There's no default
dired-mouse-find-file
function for some reason, but the following will fake it: