all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* problems with easy-menu-add on --without-x emacs
@ 2004-04-10  3:20 Miles Bader
  2004-04-10 15:33 ` Stefan Monnier
  0 siblings, 1 reply; 12+ messages in thread
From: Miles Bader @ 2004-04-10  3:20 UTC (permalink / raw)


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.

Specifically:

  (1) If I try to compose mail with `mail-user-agent' set to
      message-user-agent, I get the following backtrace:

        Debugger entered--Lisp error: (void-function x-popup-menu)
          x-popup-menu(nil (keymap "Message" (sort\ headers menu-item "Sort ...
          easy-menu-add((keymap "Message" (sort\ headers menu-item "Sort He ...
          message-mode()
          message-pop-to-buffer("*mail*")
          message-mail(nil nil nil nil nil nil nil)
          compose-mail(nil nil nil nil)
        * call-interactively(compose-mail)

      I'd think `easy-menu-add' should work regardless of X or no X,
      but it indeed calls x-popup-menu.

  (2) _Compiling_ `progmodes/ada-prj.el' fails, because it does (require
      'ada-mode), and progmodes/ada-mode.el contains a top-level call to

         (ada-create-menu)

      and `ada-create-menu' calls easy-menu-add.

Oddly, `easy-menu-add' contains the comment that "This is a nop on
emacs", but obviously it isn't!

Thanks,

-Miles
-- 
Love is a snowmobile racing across the tundra.  Suddenly it flips over,
pinning you underneath.  At night the ice weasels come.  --Nietzsche

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-04-17 19:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.