From unknown Mon Jun 23 00:32:09 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#2419 <2419@debbugs.gnu.org> To: bug#2419 <2419@debbugs.gnu.org> Subject: Status: 23.0.90; python-mode: Better Imenu Reply-To: bug#2419 <2419@debbugs.gnu.org> Date: Mon, 23 Jun 2025 07:32:09 +0000 retitle 2419 23.0.90; python-mode: Better Imenu reassign 2419 emacs submitter 2419 Milan Zamazal severity 2419 wishlist thanks From pdm@zamazal.org Sat Feb 21 02:24:40 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 21 Feb 2009 10:24:41 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1LAOb0Z022596 for ; Sat, 21 Feb 2009 02:24:38 -0800 Received: from mail.gnu.org ([199.232.76.166]:32976 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Lap06-0001tY-7Z for emacs-pretest-bug@gnu.org; Sat, 21 Feb 2009 05:22:26 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Lap2A-0001M2-UT for emacs-pretest-bug@gnu.org; Sat, 21 Feb 2009 05:24:36 -0500 Received: from ip51.strelice.net ([217.66.176.51]:24472 helo=zamazal.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lap2A-0001LQ-8D for emacs-pretest-bug@gnu.org; Sat, 21 Feb 2009 05:24:34 -0500 Received: from blackbird.nest.zamazal.org ([192.168.129.12]) by zamazal.org with esmtp (Exim 4.69) (envelope-from ) id 1Lap28-0001eO-2h for emacs-pretest-bug@gnu.org; Sat, 21 Feb 2009 11:24:32 +0100 Received: from pdm by blackbird.nest.zamazal.org with local (Exim 4.69) (envelope-from ) id 1Lap1z-0001eL-Ms for emacs-pretest-bug@gnu.org; Sat, 21 Feb 2009 11:24:23 +0100 From: Milan Zamazal To: emacs-pretest-bug@gnu.org Subject: 23.0.90; python-mode: Better Imenu X-Hashcash: 1:20:090221:emacs-pretest-bug@gnu.org::Qx8djzrZ8T8mBSZv:000000000000000000000000000000000000G1i2 Date: Sat, 21 Feb 2009 11:24:23 +0100 Message-ID: <87mycg9jfs.fsf@blackbird.nest.zamazal.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) In GNU Emacs 23.0.90.1 (x86_64-pc-linux-gnu, GTK+ Version 2.12.11) of 2009-02-03 on blackbird, modified by Debian (emacs-snapshot package, version 1:20090202-1) The Imenu support as currently implemented in python-mode is not very useful: 1. It is easier to use I-search than clicking through the offered choices. 2. When I call `M-x imenu', it usually can't find the definition of the identifier at the current point. FWIW, I use the following Imenu index building function which fixes both the problems by using single-string items, with reverse order of the identifiers within the string. Perhaps something like this could be useful for other people as well. (defun my-python-imenu-create-index () (let ((index '()) (suffix '())) (save-excursion (goto-char (point-min)) (while (re-search-forward "^\\([ \t]*\\)\\(def\\|class\\) \\([a-zA-Z_0-9]+\\)" nil t) (let ((indentation (length (match-string 1))) (name (match-string-no-properties 3))) (while (and suffix (<= indentation (caar suffix))) (setq suffix (cdr suffix))) (let* ((current-suffix (if suffix (cdar suffix) "")) (name+suffix (concat name current-suffix))) (push (cons indentation (concat "." name+suffix)) suffix) (push (cons name+suffix (match-end 3)) index)))) (goto-char (point-min)) (while (re-search-forward "^\\([a-zA-Z_0-9]+\\) *=" nil t) (push (cons (match-string-no-properties 1) (match-end 1)) index))) (sort* index 'string< :key 'car))) Regards, Milan Zamazal From lekktu@gmail.com Mon Feb 23 03:24:28 2009 Received: (at control) by emacsbugs.donarmstrong.com; 23 Feb 2009 11:24:28 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: ** X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=2.3 required=4.0 tests=MISSING_SUBJECT, MURPHY_DRUGS_REL8,NOSUBJECT,VALID_BTS_CONTROL autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-ew0-f176.google.com (mail-ew0-f176.google.com [209.85.219.176]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1NBOOtn020519 for ; Mon, 23 Feb 2009 03:24:26 -0800 Received: by ewy24 with SMTP id 24so71426ewy.1 for ; Mon, 23 Feb 2009 03:24:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=5BuY9b7aLHn2wgUjmfRqqNqIslGDCDu5EAsUChOfp2I=; b=PSwHf6rEcIfuRO7dpBxAFqvcAOZoopS4SkvIvXQl7EIiafuHjPj3pbooVrjVqqMetE 0zqq4DRSH5/phWSSuBC9csPIgbUYmCmTOBH9R+DA8DdZ5DkW879tyYyQnGcyBEJa2QAT PRXR3b9xz4gabEAxhKhkPJSSAQPJdZsZrx/84= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=teRRBhy/FhOEqSIpnUgROCjn4oIKCnL8xerIFgRjn2pcD+nofLwkhH3TPws16T5TDi dTZLwP7DvJYwEOWkynmn2h/zZisPysCdNcsbVRxq9Ihxi3CKYbygkoc/QaFPA2R95lMs 5OOS+dJmsm1BPKM//pJ+nhEzNYIsQSl7BFx30= MIME-Version: 1.0 Received: by 10.210.143.11 with SMTP id q11mr1645099ebd.115.1235388259065; Mon, 23 Feb 2009 03:24:19 -0800 (PST) Date: Mon, 23 Feb 2009 12:24:18 +0100 Message-ID: Subject: From: Juanma Barranquero To: control@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit reassign 2433 emacs,documentation tags 2438 + patch reassign 2419 emacs,python retitle 1854 Emacs opens browser tab twice tags 1854 + moreinfo quit From rgm@gnu.org Wed Apr 1 23:48:32 2009 Received: (at control) by emacsbugs.donarmstrong.com; 2 Apr 2009 06:48:32 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.0 required=4.0 tests=VALID_BTS_CONTROL, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n326mTYY000572 for ; Wed, 1 Apr 2009 23:48:30 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LpGiy-0002B0-Qu; Thu, 02 Apr 2009 02:48:28 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18900.24508.754673.868775@fencepost.gnu.org> Date: Thu, 2 Apr 2009 02:48:28 -0400 From: Glenn Morris To: control Subject: control message X-Debbugs-No-Ack: yes severity 2056 serious severity 594 minor severity 1609 serious severity 2419 wishlist severity 2763 serious reassign 2849 spam reassign 2850 spam reassign 2854 spam reassign 2855 spam reassign 2856 spam From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 17 10:27:36 2012 Received: (at control) by debbugs.gnu.org; 17 Jul 2012 14:27:36 +0000 Received: from localhost ([127.0.0.1]:46257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sr8kS-0001jE-JY for submit@debbugs.gnu.org; Tue, 17 Jul 2012 10:27:36 -0400 Received: from mail-gh0-f172.google.com ([209.85.160.172]:45562) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sr8kQ-0001j7-SI for control@debbugs.gnu.org; Tue, 17 Jul 2012 10:27:35 -0400 Received: by ghbg16 with SMTP id g16so415574ghb.3 for ; Tue, 17 Jul 2012 07:21:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:content-type :content-transfer-encoding:x-gm-message-state; bh=6nBtXWMGvt2c57CgcCMFaIxGATiCX3yJFEelETLeack=; b=UYkfoN+0t7yW5u/N82N+TxvfuMpg9djhhQDlsndxr1sXI4ciodpt530bJyuNqXRnoQ 8WOt3g45Z90NWH9MoQoWMjooHFYFeNRuMm6gcEdYSY5QguZtr5V3QXqOJnauYaVNbI8e tVx0t+3gNu0Zyiu7y+EseU/mti+6iWEaq9kGBs+IRczAmGLfpBi5a0BI8zPXfsLddLuO AkBBtWrOQpAiCbPcbjktWjFGdvOc/PlVnjmUoB7PHGWL1vvF1JAOZRUPslcR51OvN6kX XeE/0rMJYsXP7dS8FMPFoLCdtdkQcV/v/LYMV0dCKV+ZqNZRL0SmV/5vkLDhwV9B++76 zWvg== Received: by 10.236.197.3 with SMTP id s3mr2055111yhn.1.1342534892976; Tue, 17 Jul 2012 07:21:32 -0700 (PDT) Received: from [192.168.1.136] ([190.18.83.52]) by mx.google.com with ESMTPS id i65sm34725917yhb.3.2012.07.17.07.21.31 (version=SSLv3 cipher=OTHER); Tue, 17 Jul 2012 07:21:32 -0700 (PDT) Message-ID: <500574E9.3090903@anue.biz> Date: Tue, 17 Jul 2012 11:21:29 -0300 From: =?ISO-8859-1?Q?Fabi=E1n_Ezequiel_Gallina?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120616 Thunderbird/13.0.1 MIME-Version: 1.0 To: control@debbugs.gnu.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmymQRbOBvhLoW60dvwfSmz02MUhVdgfgn1RfPPSxedI6vBkyRbnS0kTelk2x8XmeyLozl1 X-Spam-Score: 2.2 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close #2419 24.2 # A simple imenu implementation is available on trunk (it is also bound to C-c C-j) [...] Content analysis details: (2.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.0 GOT_NO_SUBJECT No real subject -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.172 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 1.8 MISSING_SUBJECT Missing Subject: header X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 2.2 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close #2419 24.2 # A simple imenu implementation is available on trunk (it is also bound to C-c C-j) [...] Content analysis details: (2.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.172 listed in list.dnswl.org] 3.0 GOT_NO_SUBJECT No real subject -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 1.8 MISSING_SUBJECT Missing Subject: header close #2419 24.2 # A simple imenu implementation is available on trunk (it is also bound to C-c C-j) From unknown Mon Jun 23 00:32:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 15 Aug 2012 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator