From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Extended menu items, when are :enable and :filter computed?
Date: Sun, 26 Feb 2006 10:55:05 -0500 [thread overview]
Message-ID: <878xryp1bi.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <44010776.6020804@student.lu.se> (Lennart Borgman's message of "Sun, 26 Feb 2006 02:42:14 +0100")
> I think at least for me it is impossible to understand from the
> documentation when :enable and :filter in a menu-item list is
> computed. I believe the documentation should be improved.
> From my simple tests is seems like the argument to :filter is computed
> every time the menubar is accessed. It is not really what I would expect
> when this is in a submenu. Is this behaviour intentional?
Depends what you mean by "intentional".
When the menubar is accessed, the whole menu tree is computed before handing
it to the toolkit: submenus are precomputed rather than being computed on
the fly when the user actually accesses them.
> The same seems to be true for the argument to :enable. Is this intentional?
Same thing.
I don't think this is considered as a feature (and I thought it was in
the TODO list to change it so that submenus are only constructed when
needed, but I can't seem to find it in the TODO file), but nobody's worked
on changing it.
Note that in most cases this only matters for reasons of performance.
Stefan
next prev parent reply other threads:[~2006-02-26 15:55 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-26 1:42 Extended menu items, when are :enable and :filter computed? Lennart Borgman
2006-02-26 15:55 ` Stefan Monnier [this message]
2006-02-27 19:02 ` Richard Stallman
2006-02-27 21:49 ` Stefan Monnier
2006-02-28 6:19 ` Richard Stallman
2006-02-28 7:29 ` Lennart Borgman
2006-03-01 14:14 ` Richard Stallman
2006-02-28 16:06 ` Stefan Monnier
2006-03-01 17:55 ` Richard Stallman
2006-03-02 11:26 ` David Kastrup
2006-03-02 19:44 ` Richard Stallman
2006-03-02 20:01 ` Lennart Borgman
2006-03-03 20:58 ` Richard Stallman
2006-03-27 17:01 ` Per Abrahamsen
2006-03-28 19:33 ` Richard Stallman
2006-03-29 7:00 ` Per Abrahamsen
2006-03-29 23:02 ` Richard Stallman
2006-02-27 8:59 ` Richard Stallman
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=878xryp1bi.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).