tags:

views:

232

answers:

3

My emacs hangs (Ubuntu 9 + emacs 23 + pyflakes) when I type """ quotes for string blocks.

anybody experience the same problem? I think, it may not be the emacs problem but some python mode or pyflakes which I use it for error checking.

Anybody hot around the issue? It really frustrating experience.

+2  A: 

are you using the external python-mode (from package python-mode) or the internal python mode ? I use pyflakes with the internal emacs python mode without any problems and this is my configuration :

(when (load "flymake" t)
(defun flymake-pyflakes-init ()
  (let* ((temp-file (flymake-init-create-temp-buffer-copy
                     'flymake-create-temp-inplace))
         (local-file (file-relative-name
                      temp-file
                      (file-name-directory buffer-file-name))))
    (list "pyflakes" (list local-file))))
(add-to-list 'flymake-allowed-file-name-masks
             '("\\.py\\'" flymake-pyflakes-init)))
Chmouel Boudjnah
I just upgraded to development version of pyflakes which solved the problem. Thank you for suggesstion
Gopalakrishnan Subramani
+2  A: 

latest pyflakes in development mode fixed this problem for me. Thanks all

sudo easy_install -U pyflakes

Gopalakrishnan Subramani
A: 

This is the specific pyflakes bug that causes emacs to go nonlinear: http://divmod.org/trac/ticket/2821

adonymous nonor