all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* An imemu attempt: cannot sort list
@ 2016-07-27 22:53 Tom Browder
  2016-07-27 23:13 ` Drew Adams
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Browder @ 2016-07-27 22:53 UTC (permalink / raw
  To: help-gnu-emacs

I have a working solution (albeit rudimentary) to adding imenu support to
my fork of "perl6-mode" at <github.com/tbrowder/perl6-mode>, but I can't
get the two index subcategory lists to sort.

Could someone look at my solution (branch "my-branch") and suggest a fix
for sorting the lists?

Thanks so much.

Best regards,

-Tom


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: An imemu attempt: cannot sort list
  2016-07-27 22:53 An imemu attempt: cannot sort list Tom Browder
@ 2016-07-27 23:13 ` Drew Adams
  2016-07-28 15:40   ` Tom Browder
  0 siblings, 1 reply; 5+ messages in thread
From: Drew Adams @ 2016-07-27 23:13 UTC (permalink / raw
  To: Tom Browder, help-gnu-emacs

> I have a working solution (albeit rudimentary) to adding imenu support to
> my fork of "perl6-mode" at <github.com/tbrowder/perl6-mode>, but I can't
> get the two index subcategory lists to sort.
> 
> 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




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: An imemu attempt: cannot sort list
  2016-07-27 23:13 ` Drew Adams
@ 2016-07-28 15:40   ` Tom Browder
  2016-07-28 16:51     ` Drew Adams
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Browder @ 2016-07-28 15:40 UTC (permalink / raw
  To: Drew Adams; +Cc: help-gnu-emacs@gnu.org

On Wednesday, July 27, 2016, Drew Adams <drew.adams@oracle.com> wrote:

> > I have a working solution (albeit rudimentary) to adding imenu support to
> > my fork of "perl6-mode" at <github.com/tbrowder/perl6-mode>, but I can't
> > get the two index subcategory lists to sort.

...

> 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.


Thanks, Drew.

Do you have a pointer to a short example of its use?  As usual, for a noob,
the doc leaves MUCH to the imagination regarding actual implementation.

Best regards,

-Tom


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: An imemu attempt: cannot sort list
  2016-07-28 15:40   ` Tom Browder
@ 2016-07-28 16:51     ` Drew Adams
  2016-07-28 17:05       ` Tom Browder
  0 siblings, 1 reply; 5+ messages in thread
From: Drew Adams @ 2016-07-28 16:51 UTC (permalink / raw
  To: Tom Browder; +Cc: help-gnu-emacs

>> 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 example of its use?  As usual, for a noob,
> the doc leaves MUCH to the imagination regarding actual implementation.

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.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: An imemu attempt: cannot sort list
  2016-07-28 16:51     ` Drew Adams
@ 2016-07-28 17:05       ` Tom Browder
  0 siblings, 0 replies; 5+ messages in thread
From: Tom Browder @ 2016-07-28 17:05 UTC (permalink / raw
  To: Drew Adams; +Cc: help-gnu-emacs@gnu.org

On Thursday, July 28, 2016, Drew Adams <drew.adams@oracle.com> wrote:
>
> > Do you have a pointer to a short example of its use?  As usual, for a
> noob,
> > the doc leaves MUCH to the imagination regarding actual implementation.
>
> 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

...

Thanks, Drew.  I'll try that and come back for help if need be.

-Tom


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-07-28 17:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-27 22:53 An imemu attempt: cannot sort list Tom Browder
2016-07-27 23:13 ` Drew Adams
2016-07-28 15:40   ` Tom Browder
2016-07-28 16:51     ` Drew Adams
2016-07-28 17:05       ` Tom Browder

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.