help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: create large menu on the fly


From: daniel
Subject: Re: create large menu on the fly
Date: Fri, 7 Jun 2013 10:19:06 +0100

2013/6/7 Andreas Röhler <andreas.roehler@easy-emacs.de>

> From a first entry call your Build-function.
> When created, pass it to the mode-map, i.e. redefine mode-map. Reload
> mode. Extended menu should appear.
> And so on.
> Below an example how to create a menu entry from a single known command in
> python-mode.el.
>

I saw your code in devel/python-mode-util.el which is not loaded by default
in python-mode. Don't know how to execute it! Can you give more details?





2013/6/7 Stefan Monnier <monnier@iro.umontreal.ca>

> Oddly enough, Emacs's current C code can't do that: the C code traverses
> the whole menu, turns it into a new data-structure using the format
> expected by the UI toolkit, and passes it to the toolkit.
>

In that case there is no problem because I just optimize my filesystem menu
generation so it is much faster. Anyway, I wish to know!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]