From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.devel Subject: Re: Simple Tasks, new TODO category Date: Thu, 24 Jan 2008 10:49:21 +0000 Message-ID: <20080124104921.GA10121@www.trapp.net> References: <4797DC12.6070401@gnu.org> <4797DEA0.9020309@gmail.com> <4797DFFA.9090108@gnu.org> <4797E128.7050207@gmail.com> <47983FD6.2060908@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1201172187 8732 80.91.229.12 (24 Jan 2008 10:56:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jan 2008 10:56:27 +0000 (UTC) Cc: Jason Rumney , Dan Nicolaescu , "Lennart Borgman \(gmail\)" , Drew Adams , emacs-devel@gnu.org To: Jan =?iso-8859-1?Q?Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 24 11:56:46 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JHzl9-0003sp-4i for ged-emacs-devel@m.gmane.org; Thu, 24 Jan 2008 11:56:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JHzkj-0005Gp-7j for ged-emacs-devel@m.gmane.org; Thu, 24 Jan 2008 05:56:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JHzke-0005CN-Lq for emacs-devel@gnu.org; Thu, 24 Jan 2008 05:56:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JHzkc-00059E-Bq for emacs-devel@gnu.org; Thu, 24 Jan 2008 05:56:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JHzkc-00059B-9P for emacs-devel@gnu.org; Thu, 24 Jan 2008 05:56:06 -0500 Original-Received: from alextrapp1.equinoxe.de ([217.22.192.104] helo=www.elogos.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JHzkX-00019k-F8; Thu, 24 Jan 2008 05:56:01 -0500 Original-Received: by www.elogos.de (Postfix, from userid 4000) id A0E0F47941; Thu, 24 Jan 2008 10:49:21 +0000 (UTC) Content-Disposition: inline In-Reply-To: <47983FD6.2060908@swipnet.se> User-Agent: Mutt/1.5.9i X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:87432 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, Jan 24, 2008 at 08:35:50AM +0100, Jan Dj=C3=A4rv wrote: >=20 >=20 > Lennart Borgman (gmail) skrev: > >Jason Rumney wrote: > >>Lennart Borgman (gmail) wrote: > >>>But more simple could then be to have a function [...] > > (define-key help-map [nxhtml-report-bug] > > (list 'menu-item > > (add-acc "Report a Bug in nXhtml ..." ?b) > > 'nxhtml-report-bug)) >=20 > But what does it do? There is no 'b' in "Report a Bug in nXhtml". >=20 > This kind of interface is very bad for internationalization. FWIW, this was my thought too. > Although = the=20 > string may get translated, how would we fix ?b in that case? So for th= at=20 > reason I prefer some special character. \001 as proposed sounds OK to = me. =20 > It would then be straight forward for the platform specific code to=20 > translate it to '&' or '_'. A non-printable seems very obscure, though. I'd think using a (seldom) printable (with a way to escape it, of course) might be more friendly. Why not use underscore, as GTK does (and translate appropriately to the target platform)? I think it'd make sense to separate mechanism from policy (by providing two layers of functions, one to parse the string and another to make the menu entries with accels -- but a strong convention would seem to be helpful). Two cents from a bystander - -- tom=C3=A1s -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFHmG0xBcgs9XrR2kYRAivgAJ44mNRNytkcB03zaN8NLsKpCOXZiACdHJp3 65+cB4oNKwr1IVrmbt2iQNY=3D =3DUlSQ -----END PGP SIGNATURE-----