all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* flymake mode freezes emacs
@ 2007-08-06  7:42 Ralf Schmitt
  2007-08-07  1:22 ` Richard Stallman
  0 siblings, 1 reply; 7+ messages in thread
From: Ralf Schmitt @ 2007-08-06  7:42 UTC (permalink / raw)
  To: emacs-devel

when using flymake with pyflakes
(http://divmod.org/projects/pyflakes)emacs hangs for around 10 seconds 
with certain input files. If I load the attached python file and turn on 
flymake mode, emacs freezes. If I change pyflakes to only output "could 
not compile 'wiki.py':24: it works.
I tested it with the emacs multi tty branch and emacs 22.1. Both do not 
work.

-----------------------
.emacs:

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


-----
python file:

#! /usr/bin/env python

import os
from ConfigParser import ConfigParser

def wiki_cdb(path=None):
     """
     from mwlib import cdbwiki
     db=cdbwiki.WikiDB(path)
     return db

def image_download(url=None, localpath=None):
     assert url and localpath, "must supply url and localpath for in 
[images] section"
     from mwlib import netdb
     imgdb = netdb.ImageDB(url, localpath)
     return imgdb



dispatch = dict(
     images = dict(download = image_download),
     wiki = dict(cdb = wiki_cdb)
)
------------

Output of pyflakes for this file:
could not compile 'wiki.py':24:
     """
     from mwlib import cdbwiki
     db=cdbwiki.WikiDB(path)
     return db

def image_download(url=None, localpath=None):
     assert url and localpath, "must supply url and localpath for in 
[images] section"
     from mwlib import netdb
     imgdb = netdb.ImageDB(url, localpath)
     return imgdb



dispatch = dict(
     images = dict(download = image_download),
     wiki = dict(cdb = wiki_cdb)
)

 
 
 
 
 
                                              ^

-----------------------

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-08-09  5:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-06  7:42 flymake mode freezes emacs Ralf Schmitt
2007-08-07  1:22 ` Richard Stallman
2007-08-07  7:05   ` Ralf Schmitt
2007-08-07 20:11     ` Richard Stallman
2007-08-08 10:02       ` Ralf Schmitt
2007-08-09  0:07         ` Richard Stallman
2007-08-09  5:28           ` Ralf Schmitt

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.