summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1997-11-26 05:40:58 (GMT)
committerBarry Warsaw <barry@python.org>1997-11-26 05:40:58 (GMT)
commite467bfbfe96d07141fd86fb3b404fa407ed7d128 (patch)
tree77124bc308e497210ccb54372a1011e491fc5651 /Misc
parent47384789b2d53f72198b2ac7b10777a548150c3c (diff)
downloadcpython-e467bfbfe96d07141fd86fb3b404fa407ed7d128.zip
cpython-e467bfbfe96d07141fd86fb3b404fa407ed7d128.tar.gz
cpython-e467bfbfe96d07141fd86fb3b404fa407ed7d128.tar.bz2
(python-mode): Patch to fix Imenu support under Emacs, given by
Torsten Hilbrich <Torsten.Hilbrich@bln.de>.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/python-mode.el4
1 files changed, 3 insertions, 1 deletions
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 @@ When non-nil, arguments are printed.")
(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 @@ py-beep-if-tab-change\t\tring the bell if tab-width is changed"
;; 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)))