Problem disabling menubar accelerators.

Problem disabling menubar accelerators.

Post by ddtl » Wed, 30 Apr 2003 04:02:10

Hello everybody.

In order to remove menubar and disable it's accelerators
(so that i will be able to use accelerators' key bindings
for other things (like M-f, for example)), i added the following
code to my init.el file:

(set-specifier menubar-visible-p nil)
(setq menu-accelerator-enabled 'menu-fallback)

The first one works perfectly - xemacs starts without menubar
being visible, but menubar accelerators still work - i.e., when
you press M-f, it opens "File" menu.

If i evaluate the second sexp interractively - accelerators stop
working, as documented. I tried setting menu-accelerator-enabled
to 'nil', but still i get the same result - interractively it
works, but it doesn't work when xemacs starts up.

What is the reason that disabling menubar accelerators works
interractively but not when xemacs starts, and how it could
be fixed?

Below is my system's info from 'M-x report-xemacs-bug'
(probably it is not a bug, but some error on my side, so
i didn't submit bug report).


uname -a: Linux eeyore 2.4.20-pre8-ac2 #1 Mon Sep 30 14:56:10 EDT 2002 i686 unknown unknown GNU/Linux

./configure  '--with-sound=none,native' '--cflags=-O2 -Wall' '--with-x11' '--extra-verbose' '--with-site-lisp' '--statedir=/var/lib' '--infodir=/usr/share/info/xemacs-21.4.12' '--prefix=/usr' '--error-checking=none' '--debug=no' '--dynamic' '--with-pop' '--with-gpm=no' '--with-file-coding' '--pdump' '--with_menubars=lucid' '--with_scrollbars=lucid' '--with_dialogs=athena' '--docdir=/usr/lib/xemacs-21.4.12/i386-debian-linux/mule/' '--with-mule' '--with-canna=no' '--with-wnn=no' '--with-xim=xlib' '--with-xfs' '--package-path=~/.xemacs:~/.xemacs/packages:~/.xemacs/xemacs-packages::/usr/share/xemacs21/packages:/usr/share/xemacs21/mule-packages:/usr/share/xemacs21/site-packages' 'i386-debian-linux'

XEmacs 21.4.12 "Portable Code" configured for `i386-debian-linux'.

Compilation / Installation:
  Source code location:              /home/dres/project/debian/current/xemacs21/xemacs-21.4.12
  Installation prefix:               /usr
  Operating system description file: `s/linux.h'
  Machine description file:          `m/intel386.h'
  Compiler:                          gcc -O2 -Wall
  Relocating allocator for buffers:  no
  GNU version of malloc:             yes
    - Using Doug Lea's new malloc from the GNU C Library.

Window System:
  Compiling in support for the X window system:
    - X Windows headers location:                 /usr/X11R6/include
    - X Windows libraries location:               /usr/X11R6/lib
    - Handling WM_COMMAND properly.
  Compiling in support for the Athena widget set:
    - Athena headers location:                    X11/Xaw
    - Athena library to link:                     Xaw
  Using Lucid menubars.
  Using Lucid scrollbars.
  Using Athena dialog boxes.
  Using Athena native widgets.

  Compiling in support for ncurses.

  Compiling in support for GIF  images (builtin).
  Compiling in support for XPM  images.
  Compiling in support for PNG  images.
  Compiling in support for JPEG images.
  Compiling in support for TIFF images.
  Compiling in support for X-Face message headers.

  Compiling in support for sound (native).

  Compiling in support for Berkeley database.
  Compiling in support for LDAP.
  Compiling in support for PostgreSQL.
    - Using PostgreSQL header file:  postgresql/libpq-fe.h
    - Using PostgreSQL V7 bindings.

  Compiling in support for Mule (multi-lingual Emacs).
  Compiling in support for file coding.
  Compiling in support for XIM (X11R5+ I18N input method).
    - Using raw Xlib to provide XIM support.
    - Using XFontSet to provide bilingual menubar.

  Compiling in support for POP mail retrieval.
  Compiling in support for "dot-locking" mail spool file locking method.

Other Features:
  Inhibiting IPv6 canonicalization at startup.
  Compiling in support for dynamic shared object modules.
  Using the new portable dumper.

Load-Path Lisp Shadows:


Problem disabling menubar accelerators.

Post by Stephen J. Turnbul » Wed, 30 Apr 2003 16:36:54

    ddtl> If i evaluate the second sexp interractively - accelerators
    ddtl> stop working, as documented.

It's probably buffer-local.  Try setq-default instead of setq in your
init file.  If that doesn't work as you expect, please file a bug report.

Institute of Policy and Planning Sciences
University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
               Ask not how you can "do" free software business;
              ask what your business can "do for" free software.


1. Problems with menu-accelerator

Having recently switched to using Xemacs 21.1.6 (binary kit) on my NT 4.0
(SP 6a) system, I find that I now have a "menu-accelerator" key; when I hit
Alt (my "meta-" modifier key) by itself, I am taken to the menu bar for

I find this extremely annoying.  I have tried affecting this behavior by
setting menu-accelerator-enabled to nil, or by changing
menu-accelerator-prefix to some other key (I wouldn't mind using Esc) or to
nil; none of that seems to change anything.

Furthermore, I find that C-g does not get me out of that state, but Esc
does; since Esc is apparently defined as 'menu-escape in that mode-map,
I've tried
  (define-key menu-accelerator-map "\C-g" 'menu-escape)
but that seems to have no effect.

What am I doing wrong, or is this broken?

2. gfig? jfig??

3. big-menubar missing items from default-menubar

4. wanted...A4000 motherboard (UK)

5. menubar font problem

6. modem driver for os/2

7. Problems in the configuration of menubar

8. How to Remove Name from Add/Remove Program List

9. Mailcrypt vm encryption and menubar problems

10. problem with big-menubar

11. Problems keeping "Tools" menu in big-menubar

12. Menubar popup - AIX problem?