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: Thu, 28 Jul 2016 09:51:52 -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 1469724783 865 80.91.229.3 (28 Jul 2016 16:53:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Jul 2016 16:53:03 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Tom Browder Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 28 18:52:50 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 1bSoYE-0000Zj-10 for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jul 2016 18:52:50 +0200 Original-Received: from localhost ([::1]:54688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSoYD-0003Yt-3Y for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jul 2016 12:52:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSoXT-0003X4-JJ for help-gnu-emacs@gnu.org; Thu, 28 Jul 2016 12:52:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSoXN-0008LG-Jp for help-gnu-emacs@gnu.org; Thu, 28 Jul 2016 12:52:02 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:32369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSoXN-0008LA-BA for help-gnu-emacs@gnu.org; Thu, 28 Jul 2016 12:51:57 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u6SGptg0029613 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 28 Jul 2016 16:51:55 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u6SGpsQQ024492 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 28 Jul 2016 16:51:55 GMT Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u6SGprcF006576; Thu, 28 Jul 2016 16:51:54 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: userv0021.oracle.com [156.151.31.71] 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:110971 Archived-At: >> 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. > > Do you have a pointer to a short=C2=A0example of its use?=C2=A0 As usual,= for a noob, > the doc leaves MUCH to=C2=A0the imagination regarding actual implementati= on. Just put imenu+.el in your `load-path', then (require 'imenu+). It will first load imenu.el. Then use Imenu+ just like you would use Imenu. It just adds some enhancements and fixes some problems (such as the fact that submenus were not being sorted before splitting them). Sorry, but I don't have more time to get into details. Perhaps someone else here can help, whether with Imenu or Imenu+ code.