From debbugs-submit-bounces@debbugs.gnu.org Mon May 29 14:40:06 2017 Received: (at submit) by debbugs.gnu.org; 29 May 2017 18:40:06 +0000 Received: from localhost ([127.0.0.1]:43685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFPaH-0002Rf-TS for submit@debbugs.gnu.org; Mon, 29 May 2017 14:40:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFPaF-0002R6-Ak for submit@debbugs.gnu.org; Mon, 29 May 2017 14:40:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFPa9-0002DV-B7 for submit@debbugs.gnu.org; Mon, 29 May 2017 14:39:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41557) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dFPa9-0002DR-7D for submit@debbugs.gnu.org; Mon, 29 May 2017 14:39:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFPa7-0006EI-R4 for bug-gnu-emacs@gnu.org; Mon, 29 May 2017 14:39:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFPa4-0002CS-GX for bug-gnu-emacs@gnu.org; Mon, 29 May 2017 14:39:55 -0400 Received: from mail.choca.pics ([62.210.108.126]:46528) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dFPa4-0002BR-4f for bug-gnu-emacs@gnu.org; Mon, 29 May 2017 14:39:52 -0400 Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id 24958232B8F6 for ; Mon, 29 May 2017 20:39:40 +0200 (CEST) Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id gCt2ps--eYJY for ; Mon, 29 May 2017 20:39:39 +0200 (CEST) Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id 3B2A3232B8F7 for ; Mon, 29 May 2017 20:39:39 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.choca.pics 3B2A3232B8F7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cassou.me; s=9EA44F5C-DEF4-11E6-A83F-A08DF322D8FB; t=1496083179; bh=uoGoCMtFm7iIHKQeBbtUMGrwIYFYXYN2x6cLb0M9FpU=; h=From:To:Date:Message-ID:MIME-Version; b=gWKr4nbfSa/MJ+eD26VpCLxCzcb3KwwZuzZXQaQivDTB5QPSnpAnOe8C/ILPsU4qB AS1K2ieWP7Cg76zID+GuQanhwyxYqpxb25DJENMIPnlrDOsXkrXpFkNHWPZCPzKlJk GlEmGBgBDQKmiizadHlE/pKiGT4B+e1OvXCYYtz3puBq1NI5HTAqiLWfsToq/lftmc /WnfXta62IcnuwfEt7QOPXw/OG7Hvqz6NrH/sFsSMvKLZJusaDRpPmS6zsbywjqQFb QvrPQz8de7mmBZ4eW7iXfE+EsNXmnv4/0S3TYwGJL+f4rkcZ8QiA1UaRI/M6WIczW8 q3aaq85jrMWFA== X-Virus-Scanned: amavisd-new at choca.pics Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id C-beUxkg-6Sy for ; Mon, 29 May 2017 20:39:39 +0200 (CEST) Received: from luz4 (c80-216-198-172.bredband.comhem.se [80.216.198.172]) by mail.choca.pics (Postfix) with ESMTPSA id E56DC232B8F6 for ; Mon, 29 May 2017 20:39:38 +0200 (CEST) From: Damien Cassou To: bug-gnu-emacs@gnu.org Subject: 25.2; Add imenu support to package-menu-mode Date: Mon, 29 May 2017 20:39:36 +0200 Message-ID: <87h903fqxj.fsf@cassou.me> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) --=-=-= Content-Type: text/plain; format=flowed This commit adds Imenu support to package-menu-mode to rapidly go to any package through the standard Imenu interface. -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-imenu-support-to-package-menu-mode.patch >From c86ded55ec0e97cd464a47299ec8130b8a04f038 Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Mon, 29 May 2017 20:36:02 +0200 Subject: [PATCH] Add imenu support to package-menu-mode * lisp/emacs-list/package.el (package--imenu-prev-index-position-function package--imenu-extract-index-name-function): Imenu functions in package-menu-mode. --- lisp/emacs-lisp/package.el | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index cb8e2d6..40595ff 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -2551,7 +2551,11 @@ (define-derived-mode package-menu-mode tabulated-list-mode "Package Menu" (setq tabulated-list-padding 2) (setq tabulated-list-sort-key (cons "Status" nil)) (add-hook 'tabulated-list-revert-hook 'package-menu--refresh nil t) - (tabulated-list-init-header)) + (tabulated-list-init-header) + (setf imenu-prev-index-position-function + #'package--imenu-prev-index-position-function) + (setf imenu-extract-index-name-function + #'package--imenu-extract-index-name-function)) (defmacro package--push (pkg-desc status listname) "Convenience macro for `package-menu--generate'. @@ -3461,6 +3465,24 @@ (defun package-list-packages-no-fetch () (interactive) (list-packages t)) +(defun package--imenu-prev-index-position-function () + "Move point to previous line in package-menu buffer. +This function is used as a value for +`imenu-prev-index-position-function'." + (unless (bobp) + (forward-line -1))) + +(defun package--imenu-extract-index-name-function () + "Return imenu name for line at point. +This function is used as a value for +`imenu-extract-index-name-function'. Point should be at the +beginning of the line." + (let ((package-desc (tabulated-list-get-id))) + (format "%s (%s): %s" + (package-desc-name package-desc) + (package-version-join (package-desc-version package-desc)) + (package-desc-summary package-desc)))) + (provide 'package) ;;; package.el ends here -- 2.9.4 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 24 18:56:37 2019 Received: (at 27134) by debbugs.gnu.org; 24 Jun 2019 22:56:37 +0000 Received: from localhost ([127.0.0.1]:58280 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfXt7-0001Bk-4j for submit@debbugs.gnu.org; Mon, 24 Jun 2019 18:56:37 -0400 Received: from quimby.gnus.org ([80.91.231.51]:37908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfXt5-0001Bc-NZ for 27134@debbugs.gnu.org; Mon, 24 Jun 2019 18:56:36 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hfXt1-0000M9-H8; Tue, 25 Jun 2019 00:56:33 +0200 From: Lars Ingebrigtsen To: Damien Cassou Subject: Re: bug#27134: 25.2; Add imenu support to package-menu-mode References: <87h903fqxj.fsf@cassou.me> Date: Tue, 25 Jun 2019 00:56:31 +0200 In-Reply-To: <87h903fqxj.fsf@cassou.me> (Damien Cassou's message of "Mon, 29 May 2017 20:39:36 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Damien Cassou writes: > This commit adds Imenu support to package-menu-mode to rapidly go to > any package through the standard Imenu interface. Sounds like a good idea to me, so I've now applied your patch to the trunk (and added a NEWS entry). Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 27134 Cc: 27134@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Damien Cassou writes: > This commit adds Imenu support to package-menu-mode to rapidly go to > any package through the standard Imenu interface. Sounds like a good idea to me, so I've now applied your patch to the trunk (and added a NEWS entry). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 24 18:56:40 2019 Received: (at control) by debbugs.gnu.org; 24 Jun 2019 22:56:40 +0000 Received: from localhost ([127.0.0.1]:58283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfXtA-0001C0-Dy for submit@debbugs.gnu.org; Mon, 24 Jun 2019 18:56:40 -0400 Received: from quimby.gnus.org ([80.91.231.51]:37922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfXt9-0001Bs-83 for control@debbugs.gnu.org; Mon, 24 Jun 2019 18:56:39 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hfXt6-0000MG-Kg for control@debbugs.gnu.org; Tue, 25 Jun 2019 00:56:38 +0200 Date: Tue, 25 Jun 2019 00:56:36 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #27134 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 27134 fixed close 27134 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 27134 fixed close 27134 27.1 quit From unknown Mon Aug 18 11:31:21 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 23 Jul 2019 11:24:10 +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