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 ~/.xemacs/init.el file:
(set-specifier menubar-visible-p nil)
(setq menu-accelerator-enabled 'menu-fallback)
The first line of code works perfectly - after it's addition
xemacs starts without menubar being visible, but menubar accelerators
still work - i.e., when you press M-f, it opens "File" menu, though
according to documentation setting 'menu-accelerator-enabled' to
'menu-fallback' should disable that.
If i evaluate '(setq menu-accelerator-enabled 'menu-fallback)'
interractively (C-x C-e) - accelerators stop working, as documented.
Using 'setq-default' to set 'menu-accelerator-enabled'
(as was proposed by Stephen J. Turnbull as a possible solution)
has the same effect as using 'setq'.
Daniel.
================================================================
System Info to help track down your bug:
---------------------------------------
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.
TTY:
Compiling in support for ncurses.
Images:
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.
Sound:
Compiling in support for sound (native).
Databases:
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.
Internationalization:
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.
Mail:
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:
----------------------
(/usr/share/xemacs21/site-lisp/dictionaries-common/ispell
/usr/share/xemacs21/site-lisp/dictionaries-common/ispell
/usr/share/xemacs21/site-lisp/dictionaries-common/debian-ispell
/usr/share/xemacs21/site-lisp/dictionaries-common/debian-ispell
/usr/share/xemacs21/site-lisp/debian-startup
/usr/share/emacs/site-lisp/debian-startup
/usr/share/xemacs21/site-lisp/sawfish/sawfish
/usr/share/xemacs21/site-lisp/sawfish/sawfish
/usr/share/emacs/site-lisp/noweb-mode
/usr/share/xemacs21/packages/lisp/ess/noweb-mode
/usr/share/xemacs21/site-lisp/dictionaries-common/ispell
/usr/share/xemacs21/packages/lisp/ispell/ispell
/usr/share/xemacs21/site-lisp/gettext/po-mode
/usr/share/xemacs21/packages/lisp/text-modes/po-mode
/usr/share/xemacs21/site-lisp/gettext/po-compat
/usr/share/xemacs21/packages/lisp/text-modes/po-compat
/etc/emacs/site-start
/usr/share/xemacs21/site-packages/lisp/site-start
/usr/share/xemacs21/packages/lisp/build/build-report
/usr/lib/xemacs-21.4.12/lisp/build-report)
Installed XEmacs Packages:
-------------------------
((Sun:version 1.13 :type regular)
(ada :version 1.13 :type regular)
(apel :version 1.26 :type regular)
(auctex :version 1.33 :type regular)
(bbdb :version 1.21 :type regular)
(build :version 1.1 :type regular)
(c-support :version 1.16 :type single-file)
(calc :version 1.23 :type regular)
(calendar :version 1.19 :type regular)
(cc-mode :version 1.32 :type regular)
(clearcase :version 1.04 :type regular)
(cookie :version 1.14 :type regular)
(crisp :version 1.12 :type regular)
(debug :version 1.16 :type regular)
(dictionary :version 1.11 :type regular)
(dired :version 1.13 :type regular)
(docbookide :version 0.06 :type regular)
(ecb :version 1.01 :type regular)
(ecrypto :version 0.12 :type regular)
(edebug :version 1.15 :type regular)
(ediff :version 1.46 :type regular)
(edit-utils :version 1.98 :type single-file)
(edt :version 1.12 :type regular)
(efs :version 1.29 :type regular)
(eieio :version 1.04 :type regular)
(elib :version 1.1 :type single-file)
(emerge :version 1.09 :type regular)
(eshell :version 1.04 :type regular)
(ess :version 1.03 :type regular)
(eterm :version 1.13 :type regular)
(eudc :version 1.37 :type regular)
(footnote :version 1.15 :type regular)
(forms :version 1.14 :type regular)
(fortran-modes :version 1.02 :type single-file)
(frame-icon :version 1.09 :type regular)
(fsf-compat :version 1.12 :type single-file)
(games :version 1.13 :type regular)
(general-docs :version 1.0 :type regular)
(gnats :version 1.15 :type regular)
(gnus :version 1.65 :type regular)
(haskell-mode :version 1.05 :type regular)
(hm--html-menus :version 1.18 :type regular)
(ibuffer :version 1.08 :type regular)
(idlwave :version 1.28 :type regular)
(igrep :version 1.1 :type regular)
(ilisp :version 1.29 :type regular)
(ispell :version 1.24 :type regular)
(jde :version 1.43 :type regular)
(liece :version 1.1 :type regular)
(mail-lib :version 1.56 :type regular)
(mailcrypt :version 2.12 :type regular)
(mew :version 1.17 :type regular)
(mh-e :version 1.17 :type regular)
(mine :version 1.14 :type regular)
(misc-games :version 1.16 :type single-file)
(mmm-mode :version 1.0 :type regular)
(net-utils :version 1.31 :type single-file)
(ocaml :version 0.04 :type regular)
(os-utils :version 1.3 :type single-file)
(pc :version 1.25 :type single-file)
(pcl-cvs :version 1.64 :type regular)
(pcomplete :version 1.02 :type regular)
(perl-modes :version 1.04 :type single-file)
(pgg :version 1.02 :type regular)
(prog-modes
:version
1
.72
:type
single-file)
(ps-print :version 1.08 :type regular)
(psgml :version 1.38 :type regular)
(psgml-dtds :version 1.02 :type regular)
(python-modes :version 1.02 :type single-file)
(reftex :version 1.28 :type regular)
(rmail :version 1.13 :type regular)
(ruby-modes :version 1.01 :type regular)
(sasl :version 1.12 :type regular)
(scheme :version 1.13 :type regular)
(semantic :version 1.17 :type regular)
(sgml :version 1.08 :type regular)
(sh-script :version 1.17 :type regular)
(sieve :version 1.11 :type regular)
(slider :version 1.13 :type regular)
(sml-mode :version 0.07000000000000001 :type regular)
(sounds-au :version 1.1 :type regular)
(sounds-wav :version 1.1 :type regular)
(speedbar :version 1.26 :type regular)
(strokes :version 1.08 :type regular)
(supercite :version 1.19 :type regular)
(texinfo :version 1.23 :type regular)
(text-modes :version 1.58 :type single-file)
(textools :version 1.14 :type regular)
(time :version 1.12 :type regular)
(tm :version 1.35 :type regular)
(tooltalk :version 1.13 :type regular)
(tpu :version 1.12 :type regular)
(tramp :version 1.11 :type regular)
(vc :version 1.35 :type regular)
(vc-cc :version 1.21 :type regular)
(vhdl :version 1.16 :type regular)
(view-process :version 1.12 :type regular)
(viper :version 1.35 :type regular)
(vm :version 7.07 :type regular)
(w3 :version 1.28 :type regular)
(xemacs-base :version 1.75 :type regular)
(xemacs-devel :version 1.5 :type single-file)
(xslide :version 1.04 :type regular)
(xslt-process :version 1.11 :type regular)
(zenirc :version 1.13 :type regular)
(edict :version 1.13 :type regular)
(egg-its :version 1.26 :type regular)
(latin-unity :version 1.07 :type regular)
(leim :version 1.2 :type regular)
(locale :version 1.2 :type regular)
(lookup :version 1.13 :type regular)
(mule-base :version 1.42 :type regular)
(mule-ucs :version 1.04 :type regular)
(skk :version 1.23 :type regular))
Installed Modules:
-----------------
Features:
--------
(mail-abbrevs xemacsbug shadow sendmail rfc822 font disp-table paren
blink-paren cc-mode cc-align cc-cmds cc-engine cc-styles cc-langs
cc-vars wid-edit cc-menus imenu cc-defs font-lock cus-face ispell
Sun-autoloads ada-autoloads apel-autoloads auctex-autoloads
bbdb-autoloads build-autoloads c-support-autoloads calc-autoloads
calendar-autoloads cc-mode-autoloads clearcase-autoloads
cookie-autoloads crisp-autoloads debug-autoloads dictionary-autoloads
dired-autoloads docbookide-autoloads ecb-autoloads ecrypto-autoloads
edebug-autoloads ediff-autoloads edit-utils-autoloads edt-autoloads
efs-autoloads eieio-autoloads elib-autoloads emerge-autoloads
eshell-autoloads ess-autoloads eterm-autoloads eudc-autoloads
footnote-autoloads forms-autoloads fortran-modes-autoloads
frame-icon-autoloads fsf-compat-autoloads games-autoloads
general-docs-autoloads gnats-autoloads gnus-autoloads
haskell-mode-autoloads hm--html-menus-autoloads ibuffer-autoloads
idlwave-autoloads igrep-autoloads ilisp-autoloads ispell-autoloads
jde-autoloads liece-autoloads mail-lib-autoloads mailcrypt-autoloads
mew-autoloads mh-e-autoloads mine-autoloads misc-games-autoloads
mmm-mode-autoloads net-utils-autoloads ocaml-autoloads
os-utils-autoloads pc-autoloads pcl-cvs-autoloads pcomplete-autoloads
perl-modes-autoloads pgg-autoloads prog-modes-autoloads
ps-print-autoloads psgml-autoloads psgml-dtds-autoloads
python-modes-autoloads reftex-autoloads rmail-autoloads
ruby-modes-autoloads sasl-autoloads scheme-autoloads
semantic-autoloads sgml-autoloads sh-script-autoloads sieve-autoloads
slider-autoloads sml-mode-autoloads sounds-au-autoloads
sounds-wav-autoloads speedbar-autoloads strokes-autoloads
supercite-autoloads texinfo-autoloads text-modes-autoloads
textools-autoloads time-autoloads tm-autoloads tooltalk-autoloads
tpu-autoloads tramp-autoloads vc-autoloads vc-cc-autoloads
vhdl-autoloads view-process-autoloads viper-autoloads vm-autoloads
w3-autoloads xemacs-base-autoloads xemacs-devel-autoloads
xslide-autoloads xslt-process-autoloads zenirc-autoloads
edict-autoloads egg-its-autoloads latin-unity-autoloads leim-autoloads
locale-autoloads lookup-autoloads mule-base-autoloads
mule-ucs-autoloads skk-autoloads mule-autoloads lisp-autoloads
loadhist auto-show fontl-hooks x-iso8859-1 slovenian czech romanian
ccl mule-help code-cmds gutter-items menubar-items x-menubar
mode-motion mouse itimer auto-save lisp-mode easymenu iso8859-1 page
buff-menu lib-complete cus-file derived frame text-props obsolete
cus-start custom widget cl-extra mini-cl cl cl-19 packages backquote
very-early-lisp postgresqlv7 postgresql file-coding mule
lucid-scrollbars cut-buffer lucid-menubars athena-dialogs x
c-balloon-help tty-frames tty toolbar native-sound scrollbar
unix-processes multicast network-streams subprocesses modules
menu-accelerator-support menubar berkeley-db md5 xemacs xim gutter
tiff png gif jpeg xface xpm xbm lisp-float-type linux dialog devices
window-system base64)
Recent keystrokes:
-----------------
M-f ESC ESC M-x s u b m i t - TAB BS BS BS BS BS BS
BS r e p o r t TAB TAB M-x C-x M-x M-x M-v ESC ESC
x TAB RET
Recent messages (most recent first):
-----------------------------------
Loading xemacsbug...done
Loading xemacsbug...
Command attempted to use minibuffer while in minibuffer
C-x M-x not defined.
Command attempted to use minibuffer while in minibuffer
Making completion list...
Loading font...done
Loading font...
Paren mode is paren
Loading paren...done
Loading paren...
Loading font-lock...done
Loading cus-face...done
Loading cus-face...
Loading font-lock...
Loading 50sawfish...done
Loading 50sawfish...
Loading 50nowebm...done
Loading 50nowebm...
Loading 50gettext...done