find file stuck in python mode
If I use C-x C-f when the current buffer is a python file, emacs will stuck. I have to use C-g to quit. After that, the python shell came up and give something like this:
>>> Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'emacs' is not defined
What can I do to solve this problem?
It is ok if I use M-x find-file, but not C-x C-f.