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
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) python- hook() python- mode-hook) hooks(python- mode-hook) mode-0( python- mode nil) find-file( nil t) file-noselect- 1(#<buffer lws> "~/scripts/lws" nil nil "~/scripts/lws" (447726 2049)) file-noselect( "~/scripts/ lws" nil nil t) file("~ /scripts/ lws" t) interactively( find-file)
pylint-
run-hooks(
apply(run-hooks python-mode-hook)
run-mode-
python-mode()
set-auto-
set-auto-mode()
normal-mode(t)
after-
find-
find-
find-
call-