From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: create large menu on the fly
Date: Thu, 06 Jun 2013 21:05:18 -0400 [thread overview]
Message-ID: <jwv4ndaohqu.fsf-monnier+gmane.emacs.help@gnu.org> (raw)
In-Reply-To: CABX3oxZ-=QEmykLGz-G5EQ=PYR1XtjSEqDB3zriCWVXFqFM77A@mail.gmail.com
> So the solution would be to populate each menu only when it is activated.
> Any idea how to do this?
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.
It would be good to change that such that the conversion from Lisp
format to the toolkit format is done incrementally via callbacks, but
it's a longstanding limitation that nobody has felt like tackling yet.
Stefan
next prev parent reply other threads:[~2013-06-07 1:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-06 21:36 create large menu on the fly daniel
2013-06-07 1:05 ` Stefan Monnier [this message]
2013-06-07 5:50 ` Andreas Röhler
2013-06-07 9:19 ` daniel
2013-06-07 10:13 ` Andreas Röhler
2013-06-07 10:26 ` daniel
2013-06-07 10:57 ` Andreas Röhler
2013-06-07 11:26 ` daniel
2013-06-07 11:59 ` Andreas Röhler
2013-06-07 16:54 ` Michael Heerdegen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv4ndaohqu.fsf-monnier+gmane.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).