From xemacs-m  Sat Sep 20 22:31:28 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 WAA06263
	for <xemacs-beta@xemacs.org>; Sat, 20 Sep 1997 22:31:26 -0500 (CDT)
Received: (from hniksic@localhost)
	by jagor.srce.hr (8.8.7/8.8.6) id FAA26881;
	Sun, 21 Sep 1997 05:31:12 +0200 (MET DST)
To: Glynn Clements <glynn@sensei.co.uk>
Cc: XEmacs Developers <xemacs-beta@xemacs.org>
Subject: Re: A problem with menu accelerators
References: <kigk9gb4fg3.fsf@jagor.srce.hr> <199709210327.EAA09599@cerise.sensei.co.uk>
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 05:31:12 +0200
In-Reply-To: Glynn Clements's message of "Sun, 21 Sep 1997 04:27:30 +0100"
Message-ID: <kigsouz2vi7.fsf@jagor.srce.hr>
Lines: 35
X-Mailer: Quassia Gnus v0.5/XEmacs 20.3(beta22) - "Minsk"

Glynn Clements <glynn@sensei.co.uk> writes:

> Hrvoje Niksic wrote:
> 
> > 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?
> 
> Well, #1 is the Motif way, with the mnemonic being set by resources, e.g.
> 
> 	*menubar.file.mnemonic:		F

That would be #2, I'd say.

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
I'm a Lisp variable -- bind me!

