From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Key bindings proposal Date: Mon, 30 Aug 2010 08:53:41 -0700 Message-ID: <58FB54C2852248B489CF06DD95794182@us.oracle.com> 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> <87eidjj3zk.fsf@mail.jurta.org> <83vd6vkxfs.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1283185082 13491 80.91.229.12 (30 Aug 2010 16:18:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Aug 2010 16:18:02 +0000 (UTC) Cc: juri@jurta.org, 'Eli Zaretskii' , jasonr@gnu.org, 'Stefan Monnier' , emacs-devel@gnu.org To: "'Lennart Borgman'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 30 18:17:58 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 1Oq73V-0007vK-07 for ged-emacs-devel@m.gmane.org; Mon, 30 Aug 2010 18:17:58 +0200 Original-Received: from localhost ([127.0.0.1]:37330 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oq6ug-0007PN-5v for ged-emacs-devel@m.gmane.org; Mon, 30 Aug 2010 12:08:50 -0400 Original-Received: from [140.186.70.92] (port=45007 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oq6gJ-0003cn-Gn for emacs-devel@gnu.org; Mon, 30 Aug 2010 11:54:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oq6gF-0006cq-EC for emacs-devel@gnu.org; Mon, 30 Aug 2010 11:53:56 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:52390) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oq6gD-0006cC-D0; Mon, 30 Aug 2010 11:53:53 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o7UFro8C024778 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 30 Aug 2010 15:53:52 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o7UDELbI018634; Mon, 30 Aug 2010 15:53:49 GMT Original-Received: from abhmt001.oracle.com by acsmt354.oracle.com with ESMTP id 545144801283183623; Mon, 30 Aug 2010 08:53:43 -0700 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 30 Aug 2010 08:53:42 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: ActIWZ1jqd7FVWPCQyiodVMfxryW5AAAQ8sA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 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:129429 Archived-At: > > 3rd-party code will just have to adjust, providing two sets=20 > > of menu items: one that works in old Emacs versions (no > > accelerator indication) and one that works in new versions. > > Ugh. =A0And code that dynamically generates menu items would > > need to be adapted to always DTRT. =A0Ugh. >=20 > Can't this be handled something like this: >=20 > - Provide a function in Emacs, say `menu-escape-underscore', that does > escaping of underscore so that it is shown as an underscore. >=20 > - Test for the presence of this function in external libraries. The point is that legacy 3rd-party code makes no provision for anything. = It simply includes `_' as an ordinary character. Either the 3rd-party code = must change to recognize Emacs's different treatment in different versions or = the new Emacs behavior will treat `_' differently from what was intended. If you mean that new Emacs would use (fboundp 'menu-escape-underscore) = and then handle the menu accordingly, that might make new Emacs DTRT with old = 3rd-party code. But it would not solve the reverse problem of old Emacs versions = handling code that creates menus that expect the new treatment. Maybe there is a good, simple solution, but I don't see it yet.