>>>> "Daniel" == Daniel 
<stl(a)myrealbox.com> writes: 
    Daniel> Hello everybody.
    Daniel> In order to remove menubar and disable it's accelerators
    Daniel> (so that i will be able to use accelerators' key bindings
    Daniel> for other things (like M-f, for example)), i added the following
    Daniel> code to my ~/.xemacs/init.el file:
    Daniel> (set-specifier menubar-visible-p nil)
    Daniel> (setq menu-accelerator-enabled 'menu-fallback)
    Daniel> The first line of code works perfectly - after it's
    Daniel> addition xemacs starts without menubar being visible, but
    Daniel> menubar accelerators still work - i.e., when you press
    Daniel> M-f, it opens "File" menu, though according to
    Daniel> documentation setting 'menu-accelerator-enabled' to
    Daniel> 'menu-fallback' should disable that.
    Daniel> If i evaluate '(setq menu-accelerator-enabled
    Daniel> 'menu-fallback)' interractively (C-x C-e) - accelerators
    Daniel> stop working, as documented.
Hi Daniel,
I use
(custom-set-variables
; ...
 '(menu-accelerator-enabled nil t)
; ...
)
in my .emacs in native Windows 2000 XEmacs 21.4 and 21.5.
This allows me to use
M-f (forward-word)
to access the file menu I first type Meta (which activates the first
menu in the menubar) followed by f, which brings up the file menu.
This way I get the best of both worlds.
I would be interested to hear whether this works for you on Linux too.
Best regards,
Adrian
    Daniel> Using 'setq-default' to set 'menu-accelerator-enabled'
    Daniel> (as was proposed by Stephen J. Turnbull as a possible solution)
    Daniel> has the same effect as using 'setq'.
    Daniel> Daniel.
    Daniel> ================================================================
    Daniel> System Info to help track down your bug:
    Daniel> ---------------------------------------
    Daniel> uname -a: Linux eeyore 2.4.20-pre8-ac2 #1 Mon Sep 30 14:56:10 EDT 2002 i686
    Daniel> unknown unknown GNU/Linux
    Daniel> ./configure  '--with-sound=none,native' '--cflags=-O2
-Wall' '--with-x11' '--
    Daniel> extra-verbose' '--with-site-lisp' '--statedir=/var/lib'
'--
    Daniel> infodir=/usr/share/info/xemacs-21.4.12' '--prefix=/usr'
'--error-checking=none' 
    Daniel> '--debug=no' '--dynamic' '--with-pop'
'--with-gpm=no' '--with-file-coding' '--
    Daniel> pdump' '--with_menubars=lucid'
'--with_scrollbars=lucid' '--
    Daniel> with_dialogs=athena'
'--docdir=/usr/lib/xemacs-21.4.12/i386-debian-linux/mule/' 
    Daniel> '--with-mule' '--with-canna=no' '--with-wnn=no'
'--with-xim=xlib' '--with-xfs' 
    Daniel> '--package-path=~/.xemacs:~/.xemacs/packages:~/.xemacs/xemacs-
    Daniel> packages::/usr/share/xemacs21/packages:/usr/share/xemacs21/mule-
    Daniel> packages:/usr/share/xemacs21/site-packages'
'i386-debian-linux'
    Daniel> XEmacs 21.4.12 "Portable Code" configured for
`i386-debian-linux'.
    Daniel> Compilation / Installation:
    Daniel>   Source code location:              
    Daniel> /home/dres/project/debian/current/xemacs21/xemacs-21.4.12
    Daniel>   Installation prefix:               /usr
    Daniel>   Operating system description file: `s/linux.h'
    Daniel>   Machine description file:          `m/intel386.h'
    Daniel>   Compiler:                          gcc -O2 -Wall
    Daniel>   Relocating allocator for buffers:  no
    Daniel>   GNU version of malloc:             yes
    Daniel>     - Using Doug Lea's new malloc from the GNU C Library.
    Daniel> Window System:
    Daniel>   Compiling in support for the X window system:
    Daniel>     - X Windows headers location:                 /usr/X11R6/include
    Daniel>     - X Windows libraries location:               /usr/X11R6/lib
    Daniel>     - Handling WM_COMMAND properly.
    Daniel>   Compiling in support for the Athena widget set:
    Daniel>     - Athena headers location:                    X11/Xaw
    Daniel>     - Athena library to link:                     Xaw
    Daniel>   Using Lucid menubars.
    Daniel>   Using Lucid scrollbars.
    Daniel>   Using Athena dialog boxes.
    Daniel>   Using Athena native widgets.
    Daniel> TTY:
    Daniel>   Compiling in support for ncurses.
    Daniel> Images:
    Daniel>   Compiling in support for GIF  images (builtin).
    Daniel>   Compiling in support for XPM  images.
    Daniel>   Compiling in support for PNG  images.
    Daniel>   Compiling in support for JPEG images.
    Daniel>   Compiling in support for TIFF images.
    Daniel>   Compiling in support for X-Face message headers.
    Daniel> Sound:
    Daniel>   Compiling in support for sound (native).
    Daniel> Databases:
    Daniel>   Compiling in support for Berkeley database.
    Daniel>   Compiling in support for LDAP.
    Daniel>   Compiling in support for PostgreSQL.
    Daniel>     - Using PostgreSQL header file:  postgresql/libpq-fe.h
    Daniel>     - Using PostgreSQL V7 bindings.
    Daniel> Internationalization:
    Daniel>   Compiling in support for Mule (multi-lingual Emacs).
    Daniel>   Compiling in support for file coding.
    Daniel>   Compiling in support for XIM (X11R5+ I18N input method).
    Daniel>     - Using raw Xlib to provide XIM support.
    Daniel>     - Using XFontSet to provide bilingual menubar.
    Daniel> Mail:
    Daniel>   Compiling in support for POP mail retrieval.
    Daniel>   Compiling in support for "dot-locking" mail spool file locking
method.
    Daniel> Other Features:
    Daniel>   Inhibiting IPv6 canonicalization at startup.
    Daniel>   Compiling in support for dynamic shared object modules.
    Daniel>   Using the new portable dumper.
    Daniel> Load-Path Lisp Shadows:
    Daniel> ----------------------
    Daniel> (/usr/share/xemacs21/site-lisp/dictionaries-common/ispell
    Daniel> /usr/share/xemacs21/site-lisp/dictionaries-common/ispell
    Daniel> /usr/share/xemacs21/site-lisp/dictionaries-common/debian-ispell
    Daniel> /usr/share/xemacs21/site-lisp/dictionaries-common/debian-ispell
    Daniel> /usr/share/xemacs21/site-lisp/debian-startup
    Daniel> /usr/share/emacs/site-lisp/debian-startup
    Daniel> /usr/share/xemacs21/site-lisp/sawfish/sawfish
    Daniel> /usr/share/xemacs21/site-lisp/sawfish/sawfish
    Daniel> /usr/share/emacs/site-lisp/noweb-mode
    Daniel> /usr/share/xemacs21/packages/lisp/ess/noweb-mode
    Daniel> /usr/share/xemacs21/site-lisp/dictionaries-common/ispell
    Daniel> /usr/share/xemacs21/packages/lisp/ispell/ispell
    Daniel> /usr/share/xemacs21/site-lisp/gettext/po-mode
    Daniel> /usr/share/xemacs21/packages/lisp/text-modes/po-mode
    Daniel> /usr/share/xemacs21/site-lisp/gettext/po-compat
    Daniel> /usr/share/xemacs21/packages/lisp/text-modes/po-compat
    Daniel> /etc/emacs/site-start
    Daniel> /usr/share/xemacs21/site-packages/lisp/site-start
    Daniel> /usr/share/xemacs21/packages/lisp/build/build-report
    Daniel> /usr/lib/xemacs-21.4.12/lisp/build-report)
    Daniel> Installed XEmacs Packages:
    Daniel> -------------------------
    Daniel> ((Sun:version 1.13 :type regular)
    Daniel>  (ada :version 1.13 :type regular)
    Daniel>  (apel :version 1.26 :type regular)
    Daniel>  (auctex :version 1.33 :type regular)
    Daniel>  (bbdb :version 1.21 :type regular)
    Daniel>  (build :version 1.1 :type regular)
    Daniel>  (c-support :version 1.16 :type single-file)
    Daniel>  (calc :version 1.23 :type regular)
    Daniel>  (calendar :version 1.19 :type regular)
    Daniel>  (cc-mode :version 1.32 :type regular)
    Daniel>  (clearcase :version 1.04 :type regular)
    Daniel>  (cookie :version 1.14 :type regular)
    Daniel>  (crisp :version 1.12 :type regular)
    Daniel>  (debug :version 1.16 :type regular)
    Daniel>  (dictionary :version 1.11 :type regular)
    Daniel>  (dired :version 1.13 :type regular)
    Daniel>  (docbookide :version 0.06 :type regular)
    Daniel>  (ecb :version 1.01 :type regular)
    Daniel>  (ecrypto :version 0.12 :type regular)
    Daniel>  (edebug :version 1.15 :type regular)
    Daniel>  (ediff :version 1.46 :type regular)
    Daniel>  (edit-utils :version 1.98 :type single-file)
    Daniel>  (edt :version 1.12 :type regular)
    Daniel>  (efs :version 1.29 :type regular)
    Daniel>  (eieio :version 1.04 :type regular)
    Daniel>  (elib :version 1.1 :type single-file)
    Daniel>  (emerge :version 1.09 :type regular)
    Daniel>  (eshell :version 1.04 :type regular)
    Daniel>  (ess :version 1.03 :type regular)
    Daniel>  (eterm :version 1.13 :type regular)
    Daniel>  (eudc :version 1.37 :type regular)
    Daniel>  (footnote :version 1.15 :type regular)
    Daniel>  (forms :version 1.14 :type regular)
    Daniel>  (fortran-modes :version 1.02 :type single-file)
    Daniel>  (frame-icon :version 1.09 :type regular)
    Daniel>  (fsf-compat :version 1.12 :type single-file)
    Daniel>  (games :version 1.13 :type regular)
    Daniel>  (general-docs :version 1.0 :type regular)
    Daniel>  (gnats :version 1.15 :type regular)
    Daniel>  (gnus :version 1.65 :type regular)
    Daniel>  (haskell-mode :version 1.05 :type regular)
    Daniel>  (hm--html-menus :version 1.18 :type regular)
    Daniel>  (ibuffer :version 1.08 :type regular)
    Daniel>  (idlwave :version 1.28 :type regular)
    Daniel>  (igrep :version 1.1 :type regular)
    Daniel>  (ilisp :version 1.29 :type regular)
    Daniel>  (ispell :version 1.24 :type regular)
    Daniel>  (jde :version 1.43 :type regular)
    Daniel>  (liece :version 1.1 :type regular)
    Daniel>  (mail-lib :version 1.56 :type regular)
    Daniel>  (mailcrypt :version 2.12 :type regular)
    Daniel>  (mew :version 1.17 :type regular)
    Daniel>  (mh-e :version 1.17 :type regular)
    Daniel>  (mine :version 1.14 :type regular)
    Daniel>  (misc-games :version 1.16 :type single-file)
    Daniel>  (mmm-mode :version 1.0 :type regular)
    Daniel>  (net-utils :version 1.31 :type single-file)
    Daniel>  (ocaml :version 0.04 :type regular)
    Daniel>  (os-utils :version 1.3 :type single-file)
    Daniel>  (pc :version 1.25 :type single-file)
    Daniel>  (pcl-cvs :version 1.64 :type regular)
    Daniel>  (pcomplete :version 1.02 :type regular)
    Daniel>  (perl-modes :version 1.04 :type single-file)
    Daniel>  (pgg :version 1.02 :type regular)
    Daniel>  (prog-modes
    Daniel>   :version
    Daniel>    1
    Daniel>    .72
    Daniel>     :type
    Daniel>      single-file)
    Daniel>  (ps-print :version 1.08 :type regular)
    Daniel>  (psgml :version 1.38 :type regular)
    Daniel>  (psgml-dtds :version 1.02 :type regular)
    Daniel>  (python-modes :version 1.02 :type single-file)
    Daniel>  (reftex :version 1.28 :type regular)
    Daniel>  (rmail :version 1.13 :type regular)
    Daniel>  (ruby-modes :version 1.01 :type regular)
    Daniel>  (sasl :version 1.12 :type regular)
    Daniel>  (scheme :version 1.13 :type regular)
    Daniel>  (semantic :version 1.17 :type regular)
    Daniel>  (sgml :version 1.08 :type regular)
    Daniel>  (sh-script :version 1.17 :type regular)
    Daniel>  (sieve :version 1.11 :type regular)
    Daniel>  (slider :version 1.13 :type regular)
    Daniel>  (sml-mode :version 0.07000000000000001 :type regular)
    Daniel>  (sounds-au :version 1.1 :type regular)
    Daniel>  (sounds-wav :version 1.1 :type regular)
    Daniel>  (speedbar :version 1.26 :type regular)
    Daniel>  (strokes :version 1.08 :type regular)
    Daniel>  (supercite :version 1.19 :type regular)
    Daniel>  (texinfo :version 1.23 :type regular)
    Daniel>  (text-modes :version 1.58 :type single-file)
    Daniel>  (textools :version 1.14 :type regular)
    Daniel>  (time :version 1.12 :type regular)
    Daniel>  (tm :version 1.35 :type regular)
    Daniel>  (tooltalk :version 1.13 :type regular)
    Daniel>  (tpu :version 1.12 :type regular)
    Daniel>  (tramp :version 1.11 :type regular)
    Daniel>  (vc :version 1.35 :type regular)
    Daniel>  (vc-cc :version 1.21 :type regular)
    Daniel>  (vhdl :version 1.16 :type regular)
    Daniel>  (view-process :version 1.12 :type regular)
    Daniel>  (viper :version 1.35 :type regular)
    Daniel>  (vm :version 7.07 :type regular)
    Daniel>  (w3 :version 1.28 :type regular)
    Daniel>  (xemacs-base :version 1.75 :type regular)
    Daniel>  (xemacs-devel :version 1.5 :type single-file)
    Daniel>  (xslide :version 1.04 :type regular)
    Daniel>  (xslt-process :version 1.11 :type regular)
    Daniel>  (zenirc :version 1.13 :type regular)
    Daniel>  (edict :version 1.13 :type regular)
    Daniel>  (egg-its :version 1.26 :type regular)
    Daniel>  (latin-unity :version 1.07 :type regular)
    Daniel>  (leim :version 1.2 :type regular)
    Daniel>  (locale :version 1.2 :type regular)
    Daniel>  (lookup :version 1.13 :type regular)
    Daniel>  (mule-base :version 1.42 :type regular)
    Daniel>  (mule-ucs :version 1.04 :type regular)
    Daniel>  (skk :version 1.23 :type regular))
    Daniel> Installed Modules:
    Daniel> -----------------
    Daniel> Features:
    Daniel> --------
    Daniel> (mail-abbrevs xemacsbug shadow sendmail rfc822 font disp-table paren
    Daniel> blink-paren cc-mode cc-align cc-cmds cc-engine cc-styles cc-langs
    Daniel> cc-vars wid-edit cc-menus imenu cc-defs font-lock cus-face ispell
    Daniel> Sun-autoloads ada-autoloads apel-autoloads auctex-autoloads
    Daniel> bbdb-autoloads build-autoloads c-support-autoloads calc-autoloads
    Daniel> calendar-autoloads cc-mode-autoloads clearcase-autoloads
    Daniel> cookie-autoloads crisp-autoloads debug-autoloads dictionary-autoloads
    Daniel> dired-autoloads docbookide-autoloads ecb-autoloads ecrypto-autoloads
    Daniel> edebug-autoloads ediff-autoloads edit-utils-autoloads edt-autoloads
    Daniel> efs-autoloads eieio-autoloads elib-autoloads emerge-autoloads
    Daniel> eshell-autoloads ess-autoloads eterm-autoloads eudc-autoloads
    Daniel> footnote-autoloads forms-autoloads fortran-modes-autoloads
    Daniel> frame-icon-autoloads fsf-compat-autoloads games-autoloads
    Daniel> general-docs-autoloads gnats-autoloads gnus-autoloads
    Daniel> haskell-mode-autoloads hm--html-menus-autoloads ibuffer-autoloads
    Daniel> idlwave-autoloads igrep-autoloads ilisp-autoloads ispell-autoloads
    Daniel> jde-autoloads liece-autoloads mail-lib-autoloads mailcrypt-autoloads
    Daniel> mew-autoloads mh-e-autoloads mine-autoloads misc-games-autoloads
    Daniel> mmm-mode-autoloads net-utils-autoloads ocaml-autoloads
    Daniel> os-utils-autoloads pc-autoloads pcl-cvs-autoloads pcomplete-autoloads
    Daniel> perl-modes-autoloads pgg-autoloads prog-modes-autoloads
    Daniel> ps-print-autoloads psgml-autoloads psgml-dtds-autoloads
    Daniel> python-modes-autoloads reftex-autoloads rmail-autoloads
    Daniel> ruby-modes-autoloads sasl-autoloads scheme-autoloads
    Daniel> semantic-autoloads sgml-autoloads sh-script-autoloads sieve-autoloads
    Daniel> slider-autoloads sml-mode-autoloads sounds-au-autoloads
    Daniel> sounds-wav-autoloads speedbar-autoloads strokes-autoloads
    Daniel> supercite-autoloads texinfo-autoloads text-modes-autoloads
    Daniel> textools-autoloads time-autoloads tm-autoloads tooltalk-autoloads
    Daniel> tpu-autoloads tramp-autoloads vc-autoloads vc-cc-autoloads
    Daniel> vhdl-autoloads view-process-autoloads viper-autoloads vm-autoloads
    Daniel> w3-autoloads xemacs-base-autoloads xemacs-devel-autoloads
    Daniel> xslide-autoloads xslt-process-autoloads zenirc-autoloads
    Daniel> edict-autoloads egg-its-autoloads latin-unity-autoloads leim-autoloads
    Daniel> locale-autoloads lookup-autoloads mule-base-autoloads
    Daniel> mule-ucs-autoloads skk-autoloads mule-autoloads lisp-autoloads
    Daniel> loadhist auto-show fontl-hooks x-iso8859-1 slovenian czech romanian
    Daniel> ccl mule-help code-cmds gutter-items menubar-items x-menubar
    Daniel> mode-motion mouse itimer auto-save lisp-mode easymenu iso8859-1 page
    Daniel> buff-menu lib-complete cus-file derived frame text-props obsolete
    Daniel> cus-start custom widget cl-extra mini-cl cl cl-19 packages backquote
    Daniel> very-early-lisp postgresqlv7 postgresql file-coding mule
    Daniel> lucid-scrollbars cut-buffer lucid-menubars athena-dialogs x
    Daniel> c-balloon-help tty-frames tty toolbar native-sound scrollbar
    Daniel> unix-processes multicast network-streams subprocesses modules
    Daniel> menu-accelerator-support menubar berkeley-db md5 xemacs xim gutter
    Daniel> tiff png gif jpeg xface xpm xbm lisp-float-type linux dialog devices
    Daniel> window-system base64)
    Daniel> Recent keystrokes:
    Daniel> -----------------
    Daniel> M-f ESC ESC M-x s u b m i t - TAB BS BS BS BS BS BS 
    Daniel> BS r e p o r t TAB TAB M-x C-x M-x M-x M-v ESC ESC 
    Daniel> x TAB RET
    Daniel> Recent messages (most recent first):
    Daniel> -----------------------------------
    Daniel> Loading xemacsbug...done
    Daniel> Loading xemacsbug...
    Daniel> Command attempted to use minibuffer while in minibuffer
    Daniel> C-x M-x not defined.
    Daniel> Command attempted to use minibuffer while in minibuffer
    Daniel> Making completion list...
    Daniel> Loading font...done
    Daniel> Loading font...
    Daniel> Paren mode is paren
    Daniel> Loading paren...done
    Daniel> Loading paren...
    Daniel> Loading font-lock...done
    Daniel> Loading cus-face...done
    Daniel> Loading cus-face...
    Daniel> Loading font-lock...
    Daniel> Loading 50sawfish...done
    Daniel> Loading 50sawfish...
    Daniel> Loading 50nowebm...done
    Daniel> Loading 50nowebm...
    Daniel> Loading 50gettext...done
-- 
Adrian Aichner
 mailto:adrianï¼ xemacs.org
 
http://www.xemacs.org/