diff options
| author | Eli Zaretskii | 2013-04-20 11:01:06 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-04-20 11:01:06 +0300 |
| commit | 47ec731ececec750654e12cbd649e2cd90e069e8 (patch) | |
| tree | ae1f5c33a4a1c4e95a1b920dd29d882e31ddb020 /lisp/progmodes/python.el | |
| parent | 373b3ea63375d70183e90ce4a1fb7895336813cd (diff) | |
| parent | 806bda47ddb469f6206ecc533458eadae6a5b575 (diff) | |
| download | emacs-47ec731ececec750654e12cbd649e2cd90e069e8.tar.gz emacs-47ec731ececec750654e12cbd649e2cd90e069e8.zip | |
Merge from trunk.
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 9 |
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 | ||