From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: An imemu attempt: cannot sort list Date: Wed, 27 Jul 2016 16:13:55 -0700 (PDT) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1469661286 17575 80.91.229.3 (27 Jul 2016 23:14:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Jul 2016 23:14:46 +0000 (UTC) To: Tom Browder , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 28 01:14:34 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bSY25-000609-I9 for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jul 2016 01:14:33 +0200 Original-Received: from localhost ([::1]:49205 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSY24-0002uX-F5 for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jul 2016 19:14:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59436) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSY1d-0002uS-NH for help-gnu-emacs@gnu.org; Wed, 27 Jul 2016 19:14:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSY1Y-0000TT-M1 for help-gnu-emacs@gnu.org; Wed, 27 Jul 2016 19:14:04 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:31048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSY1Y-0000TI-BO for help-gnu-emacs@gnu.org; Wed, 27 Jul 2016 19:14:00 -0400 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u6RNDwih021630 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 27 Jul 2016 23:13:58 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id u6RNDw3P018015 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 27 Jul 2016 23:13:58 GMT Original-Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u6RNDvbJ029771; Wed, 27 Jul 2016 23:13:57 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110952 Archived-At: > I have a working solution (albeit rudimentary) to adding imenu support to > my fork of "perl6-mode" at , but I can't > get the two index subcategory lists to sort. >=20 > Could someone look at my solution (branch "my-branch") and suggest a fix > for sorting the lists? I haven't the got time to check your code, but you might want to make use of `imenu+.el', which sorts submenus before splitting them, etc. Maybe you'll have better luck with its code, which extends vanilla imenu.el= . https://www.emacswiki.org/emacs/imenu%2b.el https://www.emacswiki.org/emacs/ImenuMode#ImenuPlus