From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Key bindings proposal Date: Fri, 27 Aug 2010 20:10:29 +0800 Message-ID: <4C77AB35.4010803@gnu.org> References: <19534.1494.627000.357123@gargle.gargle.HOWL> <19537.40472.267000.563053@gargle.gargle.HOWL> <87tymlv41y.fsf@mail.jurta.org> <8D701A9E7D444011925CB68BF0883D2B@us.oracle.com> <87hbikdss4.fsf@mail.jurta.org> <87iq2yzvpo.fsf@mail.jurta.org> <15A1E47393A44678811B41A238C09E73@us.oracle.com> <87wrrd3qot.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1282911066 13505 80.91.229.12 (27 Aug 2010 12:11:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 Aug 2010 12:11:06 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 27 14:11:04 2010 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.69) (envelope-from ) id 1Ooxlu-0000TP-Vq for ged-emacs-devel@m.gmane.org; Fri, 27 Aug 2010 14:11:03 +0200 Original-Received: from localhost ([127.0.0.1]:40650 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ooxlu-0006Cq-Al for ged-emacs-devel@m.gmane.org; Fri, 27 Aug 2010 08:11:02 -0400 Original-Received: from [140.186.70.92] (port=57731 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ooxlk-0006Ce-27 for emacs-devel@gnu.org; Fri, 27 Aug 2010 08:10:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ooxlf-0001hS-AQ for emacs-devel@gnu.org; Fri, 27 Aug 2010 08:10:51 -0400 Original-Received: from mail-pv0-f169.google.com ([74.125.83.169]:54450) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ooxlf-0001hC-60 for emacs-devel@gnu.org; Fri, 27 Aug 2010 08:10:47 -0400 Original-Received: by pvc30 with SMTP id 30so1898672pvc.0 for ; Fri, 27 Aug 2010 05:10:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=O3OQkI1Dq0GRYPfY5Hp8OnKoBjaXRnhQrUO9+EL4Fqo=; b=OU4tnkfYOIPT3YBSFx57CIlf1fDd8MVjKELYV50rS4bRycwcl4Qw/h+vYz2sdfQQlt Ih++8P/8nlRERIpBJignpW/R3zN2FKiTVEEw6LjMYzjf4p9zQ9M/J4TLjl4wFlvuRgIO Nyfbp2G9gc4RWDEkueU1M/aBIRjz5vhaz9MDw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=GOccQOCxPWbBjDxOj0g+FeQgHDjfuRJAJfl2QyC7XPUvqXQitiEEX9AzWOVe72KIOQ 6AOtciO9blODdqpSov/inUjYeFXZ3wMZn+3GaEuAJhjlIQYsI5c2dpLZLJiaknjhn23k SGF4Pkd4g5gW3cs3ic2jB/3EkMJR7bd476BI0= Original-Received: by 10.114.67.14 with SMTP id p14mr355216waa.102.1282911045878; Fri, 27 Aug 2010 05:10:45 -0700 (PDT) Original-Received: from [192.168.249.100] ([202.87.221.130]) by mx.google.com with ESMTPS id q6sm6504454waj.22.2010.08.27.05.10.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 27 Aug 2010 05:10:43 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 In-Reply-To: <87wrrd3qot.fsf@mail.jurta.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:129297 Archived-At: On 27/8/2010 7:22 AM, Juri Linkov wrote: > IIUC, Windows defines menu accelerators by prepending "~" in front of > the accelerator character in the menu label, Gtk - by prepending "_". > These two are incompatible with each other. > > A common Emacs way would be to define a new underlined face and put it > on the accelerator character. Then menu accelerators will appear > underlined automatically in tmm (but not in Gtk and Windows). > > Or more consistent with Emacs menu definitions would be > to use a menu property like `:key-sequence' and `:keys', > e.g. `key-accel': IIRC, last time we discussed this, we decided that the latter approach would be best. We also considered adopting the GTK approach and replacing _ with ~ on windows (and whatever is appropriate on Mac), but that leaves lucid and text menus needing to remove the character all the time.