(python-mode): Patch to fix Imenu support under Emacs, given by
Torsten Hilbrich <Torsten.Hilbrich@bln.de>.
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index 0904800..99795a0 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -284,7 +284,7 @@
(make-variable-buffer-local 'py-indent-offset)
-;; have to bind py-file-queue before installing the kill-emacs hook
+;; have to bind py-file-queue before installing the kill-emacs-hook
(defvar py-file-queue nil
"Queue of Python temp files awaiting execution.
Currently-active file is at the head of the list.")
@@ -877,6 +877,8 @@
;; install imenu
(setq imenu-create-index-function
(function imenu-example--create-python-index))
+ (setq imenu-generic-expression
+ imenu-example--generic-python-expression)
(if (fboundp 'imenu-add-to-menubar)
(imenu-add-to-menubar (format "%s-%s" "IM" mode-name)))