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.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- amazingjxq
- Solved:
- 2012-11-08
- Last query:
- 2012-11-08
- Last reply:
- 2012-11-07
amazingjxq (amazingjxq) said : | #1 |
I set the variable debug-on-quit to t, and after I hit C-g emacs shows the following debug info
Debugger entered--Lisp error: (quit)
accept-
(progn (accept-
(while (progn (accept-
(progn (set (make-local-
(if (python-
(when (python-
(save-
(with-
(let ((proc (py-proc))) (with-current-
python-
python-
byte-code("A !\207" [tem name] 2)
ffap-
ffap-guesser()
ido-file-
ido-find-file()
call-
Andreas Roehler (a-roehler) said : | #2 |
Am 07.11.2012 05:21, schrieb amazingjxq:
> New question #213527 on python-mode.el:
> https:/
>
> 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.
>
did you try with latest python-mode.el, as bazaar delivers
bzr branch lp:python-mode
?
If yes, please open a report at "BUGS" and link your question.
Thanks,
Andreas
amazingjxq (amazingjxq) said : | #3 |
This problem is caused by ffap(find file at point) in ido-find-file.
After I comment out the following line in my .emacs, it came back to normal.
(setq ido-use-