fgallina / python.el

Python's flying circus support for Emacs
GNU General Public License v3.0
267 stars 53 forks source link

Commit 2a398fd breaks python mode on specific file and stalls emacs #124

Closed nailor closed 11 years ago

nailor commented 11 years ago

Hi,

after some bisecting I found out that 2a398fd30f22c95c0aa2c2755e0530237d00bbb3 breaks python mode and stalls emacs for really long time when opening a certain Python file.

I suspect the reason being either the change on line 2885 or the fixed end-of-defun behaviour. Too bad the code it hangs on is internal to our company, but I can help you out to debug it as much as possible!

I'll report here if I find something new on the issue myself

yyr commented 11 years ago

I am using python.el but have no problems so far.

did you try to get any backtrace., toggle-debug-on-quit and C-g when it hangs.

nailor commented 11 years ago

Hmm, I might've done errorneus bisect. 2a398fd makes loading the file dead slow, but even the previous one shows bad behavior.

I'll try to enable toggle-debug-on-quit, though Emacs gets completely unresponsive with this.

nailor commented 11 years ago

...and here's the debug-on-quit output

Debugger entered--Lisp error: (quit)
nailor commented 11 years ago

Seems like the changes in 2a398fd just make the breaking more imminent. I'll keep on debugging as I work on that file to find the exact commit breaking it.

nailor commented 11 years ago

Hm. After some additional poking around, the 2a398fd seems to be the one to blame.

nailor commented 11 years ago

Running with emacs -q and only python.el loaded, seems to work just fine, so closing this