Comment 2 for bug 374797

Revision history for this message
Phil Sung (psung) wrote :

Here is a recipe for reproduction, I believe. As the Debian bug suggests, the problem is really with pylint, which works with python-mode but not with emacs's built-in python.el. The function causing trouble is pylint-python-hook in /usr/share/emacs/site-lisp/pylint/pylint.el.

(On Ubuntu 9.04)
1. Install emacs22-gtk and pylint.
2. $ emacs -q
3. C-x C-f /any/python/file.py RET

Debugger entered--Lisp error: (void-variable py-mode-map)
  pylint-python-hook()
  run-hooks(python-mode-hook)
  apply(run-hooks python-mode-hook)
  run-mode-hooks(python-mode-hook)
  python-mode()
  set-auto-mode-0(python-mode nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(nil t)
  find-file-noselect-1(#<buffer lws> "~/scripts/lws" nil nil "~/scripts/lws" (447726 2049))
  find-file-noselect("~/scripts/lws" nil nil t)
  find-file("~/scripts/lws" t)
  call-interactively(find-file)