Often I `ssh` onto a remote machine from `ansi-term` and wish to open various files in Emacs. As I see it, there are two options:

1. `emacs -nw filename` - hiding the terminal, opening the file in the current buffer and generally creating all sorts of havoc with the key-bindings
2. `emacs filename` - opening in new window

Ideally, I'd like to use `emacs filename` to open the file in a separate buffer in the current window. I'm wondering if such a function exists, or if it might be easily written. Between `ansi-term` and `tramp`, the machinery seems to be there.