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: Sat, 28 Aug 2010 18:13:25 +0800 Message-ID: <4C78E145.80700@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> <4C77AB35.4010803@gnu.org> <87eidjj3zk.fsf@mail.jurta.org> <4C78D4C7.3020806@swipnet.se> <877hjbhyz6.fsf@home.jasonrumney.net> <4C78D9AD.2000507@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1282991163 29804 80.91.229.12 (28 Aug 2010 10:26:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 Aug 2010 10:26:03 +0000 (UTC) Cc: Juri Linkov , emacs-devel@gnu.org To: =?UTF-8?B?SmFuIERqw6Rydg==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 28 12:26:00 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 1OpIbm-0008Mg-VM for ged-emacs-devel@m.gmane.org; Sat, 28 Aug 2010 12:25:59 +0200 Original-Received: from localhost ([127.0.0.1]:59961 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OpIbm-00038s-5i for ged-emacs-devel@m.gmane.org; Sat, 28 Aug 2010 06:25:58 -0400 Original-Received: from [140.186.70.92] (port=57690 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OpIUR-0001XZ-Rk for emacs-devel@gnu.org; Sat, 28 Aug 2010 06:18:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OpIPv-0005eU-6K for emacs-devel@gnu.org; Sat, 28 Aug 2010 06:13:44 -0400 Original-Received: from mail-pw0-f41.google.com ([209.85.160.41]:49914) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OpIPv-0005eG-10 for emacs-devel@gnu.org; Sat, 28 Aug 2010 06:13:43 -0400 Original-Received: by pwj6 with SMTP id 6so2355468pwj.0 for ; Sat, 28 Aug 2010 03:13:42 -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:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=5yyiG48KjaOFTllbegHQTDsjstHtLKJOH8suChmw7gs=; b=xH9hwhQQflHgrnm7mU557NWNECF7Y6M+GSWO5Yvvf5oYgldyeyo/OyvlEQtb2qJwcv OZRX7z+Vam8GvFKFM4fE56WU3jwm39qF1B/oTLiwZAivOkjSVu8YhS3mV9N7GNwPIa9U u93xzvkPLB7RBHUauQRNELumESpgJYTXxJvZA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=RERce9erXFrOpGKvu3QbuWuM4oog3RBP+aYPEyoaRaSrWYdIas0EmepB2SOqvtAvJi Whf9pmSDtczsXCAPbo9zmrnZNZ37QMpynZiPXw85pRrAM2m6qdC98wJgZUQTpPBt+Bly 2HuZiUHOAEhtbfF0DE/w9je9eJBvp1XVxjGjQ= Original-Received: by 10.114.66.10 with SMTP id o10mr1900755waa.113.1282990422093; Sat, 28 Aug 2010 03:13:42 -0700 (PDT) Original-Received: from [192.168.249.100] ([202.87.221.130]) by mx.google.com with ESMTPS id k23sm8656195waf.5.2010.08.28.03.13.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 28 Aug 2010 03:13:41 -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: <4C78D9AD.2000507@swipnet.se> 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:129338 Archived-At: On 28/8/2010 5:41 PM, Jan Djärv wrote: > Sure, but putting in stuff like :key-accel makes translation harder > and you have to add lisp and C code to handle it. Text properties > exist now. > > It is trivial to make a function that takes for example "_File" and > turns this into a string with "File" and a text property on F. It's not significantly more difficult than a function that replaces both the menu text and the :key-accel (or :mnemonic to use the GTK and Motif name rather than the MS Windows one) property given the menu item that is being translated and the translation string as above. The interface should be what is easy for the users of the function, not what is slightly easier for the person who implements the feature.