From: Ralf Schmitt <ralf@brainbot.com>
To: emacs-devel@gnu.org
Subject: flymake mode freezes emacs
Date: Mon, 06 Aug 2007 09:42:18 +0200 [thread overview]
Message-ID: <f96jcr$v0m$1@sea.gmane.org> (raw)
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)
)
^
-----------------------
next reply other threads:[~2007-08-06 7:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-06 7:42 Ralf Schmitt [this message]
2007-08-07 1:22 ` flymake mode freezes emacs 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='f96jcr$v0m$1@sea.gmane.org' \
--to=ralf@brainbot.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.