GNU bug report logs - #25734
Python - fix imenu regexp for async functions

Previous Next

Package: emacs;

Reported by: Michael Kleehammer <michael <at> kleehammer.com>

Date: Tue, 14 Feb 2017 21:07:01 UTC

Severity: minor

Tags: fixed, patch

Merged with 24820

Found in version 25

Fixed in version 26.1

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: npostavs <at> users.sourceforge.net
To: Michael Kleehammer <michael <at> kleehammer.com>
Cc: 25734 <at> debbugs.gnu.org
Subject: bug#25734: Python - fix imenu regexp for async functions
Date: Tue, 14 Feb 2017 20:33:10 -0500
Michael Kleehammer <michael <at> kleehammer.com> writes:
>
> The patch below is a minor modification for a regular expression. The
> old one simply took the 2nd token on the line to be the name; the new
> one skips the optional “async” keyword.
>
> Please note the current imenu is unusable in a file with a lot of
> async functions - it would be nice if this rolled out with 25.2 if
> possible, which I believe adds the rest of async support.

There was a patch for a similar problem in #24820, but when looking at
the code touched there, it seems that the sub-groups of
python-nav-beginning-of-defun-regexp are not used
(python-imenu--put-parent uses "group 0").  Did I miss something?

I applied that patch to master (i.e., what will be 26.1), by the way.




This bug report was last modified 8 years and 96 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.