python-mode does not autoload on emacs21
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: python-mode
python mode no longer auto loads on emacs21 with gutsy.
Looks like the /etc/emacs/
By my eye, the entire file should be executed when emacs21 is used, but the form of the if statement only executes the first line. The rest of the file is executed on emacs22/emacs20 which does not seem to be the intent. I fixed it by wrapping the bulk of the file in a progn block.
(if (not (or (eq (symbol-name debian-
(eq (symbol-name debian-
(progn
(autoload 'python-mode "python-mode" "Python editing mode." t)
[..]
The execution of the bulk of this file as an else block is probbably related to 155681, but the fix from there is needed too, the eq should be string=.
I have this problem on a clean install of gutsy; the fix above works.
I've attached a patch to the file; if you want to try the fix and don't know enough Lisp to do it yourself, apply the patch as follows:
sudo patch -p0 < patch