From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Key bindings proposal Date: Mon, 30 Aug 2010 18:06:26 +0200 Message-ID: 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> <58FB54C2852248B489CF06DD95794182@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1283185058 13351 80.91.229.12 (30 Aug 2010 16:17:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Aug 2010 16:17:38 +0000 (UTC) Cc: juri@jurta.org, Eli Zaretskii , jasonr@gnu.org, Stefan Monnier , emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 30 18:17:34 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 1Oq733-00086h-M0 for ged-emacs-devel@m.gmane.org; Mon, 30 Aug 2010 18:17:30 +0200 Original-Received: from localhost ([127.0.0.1]:41409 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oq72r-0003O8-8r for ged-emacs-devel@m.gmane.org; Mon, 30 Aug 2010 12:17:17 -0400 Original-Received: from [140.186.70.92] (port=54990 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oq6sj-0006ZH-N0 for emacs-devel@gnu.org; Mon, 30 Aug 2010 12:06:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oq6sh-0000Pj-Dt for emacs-devel@gnu.org; Mon, 30 Aug 2010 12:06:48 -0400 Original-Received: from mail-qy0-f169.google.com ([209.85.216.169]:60174) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oq6sh-0000Pb-B0; Mon, 30 Aug 2010 12:06:47 -0400 Original-Received: by qyk12 with SMTP id 12so3325209qyk.0 for ; Mon, 30 Aug 2010 09:06:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=U7O5MDQnlFUjb4GCNs5nU6DoMOW/tAp04wOhtH4y2fk=; b=iF2FxV0DzXiGvjQy2xZzXdf8Bic5VGSBffs0eLtUSyJhFkt4yvWrkU01YdA8CQVRxK Go8i4VrHR+Gx+a7azdds29FCHY14FSHGUs/ILl5weyqYPdgTWfwIRMfYJAbiaUvuKinY 3QHkwpZexdmuqPa5huOnTN+agYEJF5BlBswd4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=Qtg2PcZmsnIetuyDXCGAw9i0EOUGToDWni21V0IV3MRGPTXhUCNWcPQbH0Y+XtepFW xARIcfjXqWwL0egOvDZ6WPNLqEIUiQnurZAFyN2fy+z7paAyiWXFo4mgPLidGRMhrIs4 TxMjQlkPsQiDlF/Jf32xMgpMuGmfNlrTmt8y8= Original-Received: by 10.224.103.204 with SMTP id l12mr2994316qao.351.1283184406316; Mon, 30 Aug 2010 09:06:46 -0700 (PDT) Original-Received: by 10.229.20.139 with HTTP; Mon, 30 Aug 2010 09:06:26 -0700 (PDT) In-Reply-To: <58FB54C2852248B489CF06DD95794182@us.oracle.com> 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:129426 Archived-At: On Mon, Aug 30, 2010 at 5:53 PM, Drew Adams wrote: >> > 3rd-party code will just have to adjust, providing two sets >> > of menu items: one that works in old Emacs versions (no >> > accelerator indication) and one that works in new versions. >> > Ugh. =C2=A0And code that dynamically generates menu items would >> > need to be adapted to always DTRT. =C2=A0Ugh. >> >> Can't this be handled something like this: >> >> - Provide a function in Emacs, say `menu-escape-underscore', that does >> escaping of underscore so that it is shown as an underscore. >> >> - Test for the presence of this function in external libraries. > > The point is that legacy 3rd-party code makes no provision for anything. = =C2=A0It > simply includes `_' as an ordinary character. =C2=A0Either 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) an= d 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 h= andling > code that creates menus that expect the new treatment. No, I meant that 3rd party code must check for this. So yes, third party code must change, but it is a simple change, something like (when (fboundp 'menu-escape-underscore) (setq my-menu-txt (menu-escape-underscore my-menu-txt))) > Maybe there is a good, simple solution, but I don't see it yet. > >