Accelerators in menubar (ugly underscores)
Stephen J. Turnbull
stephen at xemacs.org
Fri Nov 11 01:28:42 EST 2011
Stephen J. Turnbull writes:
> It wouldn't be hard to make this depend on the value of
> `menu-accelerator-enabled' or on a new variable such as
> `menu-accelerator-keys-flagged' (or some combination of both). The
> only tricky part would be making sure that the menubar gets flagged as
> dirty when those variables change so that redisplay would redraw with
> or without as appropriate.
Actually, this is harder than I thought; the relevant code is
hard-coded in lwlib/xlwmenu.c instead of in redisplay proper. That
means it's non-trivial to communicate with Lisp. To get rid of the
underlines in your own copy of XEmacs, you can comment out the
following code at line 973 of xlwmenu.c:
/* underline next character */
XDrawLine (XtDisplay (mw), window, gc, x - 1,
y + mw->menu.font_ascent + 1,
x + w - 1, y + mw->menu.font_ascent + 1 );
Untested, YMMV.
More information about the XEmacs-Beta
mailing list