From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Key bindings proposal Date: Fri, 27 Aug 2010 23:38:07 +0100 Organization: JURTA Message-ID: <87eidjj3zk.fsf@mail.jurta.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> <4C77AB35.4010803@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1282949807 3838 80.91.229.12 (27 Aug 2010 22:56:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 Aug 2010 22:56:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 28 00:56:44 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 1Op7ql-0005cB-P7 for ged-emacs-devel@m.gmane.org; Sat, 28 Aug 2010 00:56:44 +0200 Original-Received: from localhost ([127.0.0.1]:55207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Op7ql-0005te-1L for ged-emacs-devel@m.gmane.org; Fri, 27 Aug 2010 18:56:43 -0400 Original-Received: from [140.186.70.92] (port=56185 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Op7qa-0005tP-MW for emacs-devel@gnu.org; Fri, 27 Aug 2010 18:56:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Op7qV-00063S-Cm for emacs-devel@gnu.org; Fri, 27 Aug 2010 18:56:32 -0400 Original-Received: from smarty.dreamhost.com ([208.113.175.8]:34731) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Op7qV-00063K-5w; Fri, 27 Aug 2010 18:56:27 -0400 Original-Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id DF7CB6E8069; Fri, 27 Aug 2010 15:56:25 -0700 (PDT) Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 762D5451C1B4; Fri, 27 Aug 2010 15:56:24 -0700 (PDT) In-Reply-To: <4C77AB35.4010803@gnu.org> (Jason Rumney's message of "Fri, 27 Aug 2010 20:10:29 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:129319 Archived-At: >> 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. It seems I missed this decision in this overlong thread. What would be a good scheme for values of `key-accel'? It could either specify the absolute position of the accelerator in the menu label string (an integer value like `:key-accel 6'), or the accelerator itself as a character (like `:key-accel ?A').