From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#25734: Python - fix imenu regexp for async functions Date: Tue, 14 Feb 2017 20:33:10 -0500 Message-ID: <878tp8kzl5.fsf@users.sourceforge.net> References: <53fdd849-4f99-48c0-bde7-7d07107984dc@Spark> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1487122396 32337 195.159.176.226 (15 Feb 2017 01:33:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 15 Feb 2017 01:33:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: 25734@debbugs.gnu.org To: Michael Kleehammer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 15 02:33:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdoSz-0007sr-HC for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Feb 2017 02:33:09 +0100 Original-Received: from localhost ([::1]:38008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdoT5-0007En-AA for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Feb 2017 20:33:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdoSw-0007Dc-2Q for bug-gnu-emacs@gnu.org; Tue, 14 Feb 2017 20:33:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cdoSt-0007tz-0b for bug-gnu-emacs@gnu.org; Tue, 14 Feb 2017 20:33:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42166) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cdoSs-0007th-UF for bug-gnu-emacs@gnu.org; Tue, 14 Feb 2017 20:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cdoSs-00080b-OP for bug-gnu-emacs@gnu.org; Tue, 14 Feb 2017 20:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Feb 2017 01:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25734 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25734-submit@debbugs.gnu.org id=B25734.148712232930704 (code B ref 25734); Wed, 15 Feb 2017 01:33:02 +0000 Original-Received: (at 25734) by debbugs.gnu.org; 15 Feb 2017 01:32:09 +0000 Original-Received: from localhost ([127.0.0.1]:40361 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdoS0-0007zA-TM for submit@debbugs.gnu.org; Tue, 14 Feb 2017 20:32:09 -0500 Original-Received: from mail-it0-f42.google.com ([209.85.214.42]:37147) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdoRz-0007ym-9B for 25734@debbugs.gnu.org; Tue, 14 Feb 2017 20:32:07 -0500 Original-Received: by mail-it0-f42.google.com with SMTP id x75so55911015itb.0 for <25734@debbugs.gnu.org>; Tue, 14 Feb 2017 17:32:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=+KBbUvjk39ELRZL60ct53fwCNn+OwPLsh61AUIrD7gE=; b=R9GezYGF7oz+funTa2tt4vguy77WdSZ30plZKDpDrxXqDuYlpgEmJq9KwK/PHn1qVI cltW5fsuz4GYoDAh/snaI9QH4BzX38iHgCYSxa7v8TfgHhkjoUFEQRVPyzUwovcpCgyw bAdgoYVSjK07+NCxfyFRotgggr8xQQ2ourBd4lr5iduMnziYx6ppERBDTHebg66REGBG C13QHwudeSjUN/g9zafMGgYrGIyRN23nCP2fmTeo3dF6BNye/+/kRUa2oJ1TIz7zJ+aL HjV4E4Xz4gGMCr0MNgZsJDq4tRUdZ72QNmKlOZSk7k4ond+6fPsIn0y2iVv1MGZdvu1t ba3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=+KBbUvjk39ELRZL60ct53fwCNn+OwPLsh61AUIrD7gE=; b=H5138dlhW3YgQdUnCP2GP1phpExH6G8ipWlLyRWzKGNp3Fmcvy4L/r4Oknz9hglkcU I7dGXWKdx2/0jr5mRf+kdGw3uuKG2+BaBBpakRiMmas5cR8lc2FOBnB9lKz7wGAyXgxP a+Q1D4y7mH4atKfwVT1ID5rcKypBKFpXN6XoRU2uP8Sdf3VfusoEnLdUuk6MqHwf/Ky7 BWv+s1tWxXBIU5Do/vBHrdyOdXPmhr4D6hale7b/vuAn7XuhTUbRVDUsSXhx8OMHgAqo 4QEmMCAbf7soaU1SXxN+7z4V72URFLZEB9dFymmYPz8VWxM3WKZ0/c0Y+PVol8cysDcn e5eQ== X-Gm-Message-State: AMke39ke6cCUSuEOTdhjtrpjpQNnzu8QvhlIIpJM9rk34xaylMKQaCd0eUZMF/8VJOvoHw== X-Received: by 10.36.84.148 with SMTP id t142mr6776275ita.90.1487122321642; Tue, 14 Feb 2017 17:32:01 -0800 (PST) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id m79sm1113017ioo.0.2017.02.14.17.32.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 Feb 2017 17:32:01 -0800 (PST) In-Reply-To: <53fdd849-4f99-48c0-bde7-7d07107984dc@Spark> (Michael Kleehammer's message of "Tue, 14 Feb 2017 15:01:28 -0600") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129369 Archived-At: Michael Kleehammer 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 =E2=80=9Casync=E2=80=9D 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.