unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org, miles@gnu.org
Subject: Re: problems with easy-menu-add on --without-x emacs
Date: 12 Apr 2004 00:41:50 -0400	[thread overview]
Message-ID: <m1smf97qx6.fsf-monnier+emacs@empanada.iro.umontreal.ca> (raw)
In-Reply-To: <E1BCsUf-0007cN-T2@fencepost.gnu.org>

>> I notice several cases where things fail on an emacs compiled without X
>> support, because they call `easy-menu-add', and it calls `x-popup-menu'
>> which isn't defined when X support is disabled.  I don't recall such
>> failures the last time I tried to make a no-X emacs, so maybe something
>> has changed recently.

>     I've just removed the unnecessary call to x-popup-menu yesterday, as
>     a matter of fact, so things should work again.

> The call to x-popup-menu was intended to precompute info cached in the
> menu, so that the menu would display more quickly.

> Why do you think it was unnecessary?

I haven't been able to measure any actual speed difference on any machine
I have access to.  Maybe some years ago it made a difference, but it's lost
in the noise now.


        Stefan


PS: I also remember of a case where the precomputation was wrong because it
did not know that the menu was always going to be used when some other minor
mode was ON, and all the keybindings for the menu were provided by the minor
mode's map.  I can't remember the details, but my conclusion at that time
was that this specific optimization was not worth the trouble any more.

  reply	other threads:[~2004-04-12  4:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-10  3:20 problems with easy-menu-add on --without-x emacs Miles Bader
2004-04-10 15:33 ` Stefan Monnier
2004-04-12  3:52   ` Richard Stallman
2004-04-12  4:41     ` Stefan Monnier [this message]
2004-04-13 17:44       ` Richard Stallman
2004-04-13 18:14         ` Stefan Monnier
2004-04-14 22:53           ` Richard Stallman
2004-04-14 23:25             ` David Kastrup
2004-04-16 18:08               ` Richard Stallman
2004-04-16 18:27                 ` David Kastrup
2004-04-17 19:46                   ` Richard Stallman
2004-04-14  0:18         ` Alex Schroeder

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=m1smf97qx6.fsf-monnier+emacs@empanada.iro.umontreal.ca \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=miles@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).