Mercurial > cpython-lru_cache-weakref
diff Misc/python-mode.el @ 9005:ec01fe9c2841 legacy-trunk
(imenu-example--create-python-index-engine): Fix nesting breakage when
a method definition has args that span multiple lines; be sure to go
to the beginning of the method definition -- but watch out for the
match-data!
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Tue, 18 Aug 1998 02:00:44 +0000 |
| parents | be935851dc50 |
| children | 3df5b9d8335b |
line wrap: on
line diff
--- a/Misc/python-mode.el Mon Aug 17 14:11:00 1998 +0000 +++ b/Misc/python-mode.el Tue Aug 18 02:00:44 1998 +0000 @@ -891,6 +891,8 @@ (setq def-name (buffer-substring-no-properties (match-beginning cur-paren) (match-end cur-paren)))) + (save-match-data + (py-beginning-of-def-or-class)) (beginning-of-line) (setq cur-indent (current-indentation)))
