From xemacs-m  Sat Sep 20 20:35:27 1997
Received: from jagor.srce.hr (hniksic@jagor.srce.hr [161.53.2.130])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id UAA05588
	for <xemacs-beta@xemacs.org>; Sat, 20 Sep 1997 20:35:23 -0500 (CDT)
Received: (from hniksic@localhost)
	by jagor.srce.hr (8.8.7/8.8.6) id DAA21043;
	Sun, 21 Sep 1997 03:35:08 +0200 (MET DST)
To: XEmacs Developers <xemacs-beta@xemacs.org>
Subject: A problem with menu accelerators
X-Attribution: Hrvoje
X-Face: Mie8:rOV<\c/~z{s.X4A{!?vY7{drJ([U]0O=W/<W*SMo/Mv:58:*_y~ki>xDi&N7XG
        KV^$k0m3Oe/)'e%3=$PCR&3ITUXH,cK>]bci&<qQ>Ff%x_>1`T(+M2Gg/fgndU%k*ft
        [(7._6e0n-V%|%'[c|q:;}td$#INd+;?!-V=c8Pqf}3J
From: Hrvoje Niksic <hniksic@srce.hr>
Date: 21 Sep 1997 03:35:08 +0200
Message-ID: <kigk9gb4fg3.fsf@jagor.srce.hr>
Lines: 25
X-Mailer: Quassia Gnus v0.5/XEmacs 20.3(beta22) - "Minsk"

I have spotted a problem in the (otherwise terrific!) design of menu
accelerators.  The trouble is, if you define your menus to have random 
%_ within the entry strings, then the simple things like

(add-menu-button '("File") "ha ha")

will not only miss the '("%_File") menu item, but they will add a
new '("File") menu item to the menubar.  Yuck!

There are two ways of handling this:

1) implement that the %_ are somehow ignored within any strings in
   menubar functions;

2) think out a new interface for adding accelerators, separating them
   from the strings.

Solution #1 is hard to implement, but easy to use.  #2 is easy to
implement, but hard to use.  Which one is worse, and which one is
better?

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
I'm sure they'll listen to reason! -- Neal Stevenson, _Snow Crash_

