unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: lennart.borgman.073@student.lu.se, emacs-devel@gnu.org
Subject: Re: Extended menu items, when are :enable and :filter computed?
Date: Mon, 27 Feb 2006 16:49:26 -0500	[thread overview]
Message-ID: <jwvy7zwzdcd.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E1FDndt-0004x6-A3@fencepost.gnu.org> (Richard Stallman's message of "Mon, 27 Feb 2006 14:02:45 -0500")

>     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),

> The reason for precomputing all the submenus is so that the toolkit
> can display them all autonomously.  I think that's the only way some
> toolkits can do it, so the idea of changing this is a non-starter.

If the only toolkits which could do it are non-free or "insignificant", then
I agree, but otherwise it may still make sense to provide it as
a toolkit-dependent optimization.  But indeed, it means that even if we
manage to change it for some toolkits, you won't be able to rely on
your :filters and :enables being called only when strictly necessary.

I've always viewed such a change as a performance improvement for those
cases where we use large dynamically-generated menus or menus with lots of
shortcuts to compute (X-Symbol comes to mind).

AFAIK XEmacs does compute menus on-demand.


        Stefan

  reply	other threads:[~2006-02-27 21:49 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
2006-02-27 19:02   ` Richard Stallman
2006-02-27 21:49     ` Stefan Monnier [this message]
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=jwvy7zwzdcd.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman.073@student.lu.se \
    /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).