Question

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

Anybody experienced the same problem? I think, it may not be an Emacs problem but some Python mode or Pyflakes which I use it for error checking.

Anybody got around the issue? It is a really frustrating experience.

Was it helpful?

Solution

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

sudo easy_install -U pyflakes

OTHER TIPS

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)))

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top