aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorJoakim Verona2013-04-20 08:30:34 +0200
committerJoakim Verona2013-04-20 08:30:34 +0200
commit3381209e54b222a9cdd4fdfff9676137d042552c (patch)
tree730030784d356600b6f2423fbd90fe763b4954ac /lisp/progmodes/python.el
parent4fe629bae8dac446053cacc1f10e4279df56d891 (diff)
parent38ef2c8490eaa74e22504386beebc6d88d287094 (diff)
downloademacs-3381209e54b222a9cdd4fdfff9676137d042552c.tar.gz
emacs-3381209e54b222a9cdd4fdfff9676137d042552c.zip
auto upstream
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 06d07d6ee3c..2165c835057 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -3176,6 +3176,7 @@ To this:
3176 (\"decorator\" . 173) 3176 (\"decorator\" . 173)
3177 (\"decorator.wrap\" . 353) 3177 (\"decorator.wrap\" . 353)
3178 (\"decorator.wrapped_f\" . 393))" 3178 (\"decorator.wrapped_f\" . 393))"
3179 ;; Inspired by imenu--flatten-index-alist removed in revno 21853.
3179 (apply 3180 (apply
3180 'nconc 3181 'nconc
3181 (mapcar 3182 (mapcar
@@ -3187,14 +3188,14 @@ To this:
3187 (cond ((or (numberp pos) (markerp pos)) 3188 (cond ((or (numberp pos) (markerp pos))
3188 (list (cons name pos))) 3189 (list (cons name pos)))
3189 ((listp pos) 3190 ((listp pos)
3190 (message "%S" item)
3191 (cons 3191 (cons
3192 (cons name (cdar pos)) 3192 (cons name (cdar pos))
3193 (python-imenu-create-flat-index (cddr item) name)))))) 3193 (python-imenu-create-flat-index (cddr item) name))))))
3194 (or alist 3194 (or alist
3195 (let ((python-imenu-format-item-label-function (lambda (type name) name)) 3195 (let* ((fn (lambda (type name) name))
3196 (python-imenu-format-parent-item-label-function (lambda (type name) name)) 3196 (python-imenu-format-item-label-function fn)
3197 (python-imenu-format-parent-item-jump-label-function (lambda (type name) name))) 3197 (python-imenu-format-parent-item-label-function fn)
3198 (python-imenu-format-parent-item-jump-label-function fn))
3198 (python-imenu-create-index)))))) 3199 (python-imenu-create-index))))))
3199 3200
3200 3201