Subject: bug#24820: Imenu in `python-mode' does not display function name for async def

From: [email-masked]
Date: Wed, 04 Jan 2017 23:07:53 -0500

Dmitry Lazurkin <[email-masked]> writes:

> Some fixes:
> - fix commit message
> - return imenu type "async def" for async def's

Thanks.  I'll push this to master in a week or so, unless there are
objections.

> (is formatting code ugly?)

I don't see any formatting problems in your code, but it looks like the
patch got word wrapped, I find sending as attachment generally avoids
such issues.

> -         (type)
> -         (name (when (and pos (looking-at
> python-nav-beginning-of-defun-regexp))
> -                 (let ((split (split-string
> (match-string-no-properties 0))))