(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!
This commit is contained in:
Barry Warsaw 1998-08-18 02:00:44 +00:00
parent 664dcd5b5e
commit 93c88cca06
1 changed files with 2 additions and 0 deletions

View File

@ -891,6 +891,8 @@ of the first definition found."
(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)))