Commits

Barry Warsaw committed 9855270

(python-mode): Patch to fix Imenu support under Emacs, given by
Torsten Hilbrich <Torsten.Hilbrich@bln.de>.

  • Participants
  • Parent commits 089c04d
  • Branches legacy-trunk

Comments (0)

Files changed (1)

Misc/python-mode.el

 
 (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.")
   ;; 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)))