From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= Newsgroups: gmane.emacs.devel Subject: Re: have cake will eat, eatcake will have - krazy key koncept kontroversy Date: Fri, 28 Aug 2009 10:35:16 +0400 Message-ID: <5f0660120908272335u64242281o1e2716c662dd8ca5@mail.gmail.com> References: <732931969EE046E8A44CE77C4FD88C64@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: ger.gmane.org 1251441470 21702 80.91.229.12 (28 Aug 2009 06:37:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Aug 2009 06:37:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 28 08:37:43 2009 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.50) id 1Mgv5i-0000cw-16 for ged-emacs-devel@m.gmane.org; Fri, 28 Aug 2009 08:37:42 +0200 Original-Received: from localhost ([127.0.0.1]:54697 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mgv5h-0000l9-8s for ged-emacs-devel@m.gmane.org; Fri, 28 Aug 2009 02:37:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mgv3c-0006rS-9G for emacs-devel@gnu.org; Fri, 28 Aug 2009 02:35:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mgv3Y-0006l3-4U for emacs-devel@gnu.org; Fri, 28 Aug 2009 02:35:31 -0400 Original-Received: from [199.232.76.173] (port=44014 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mgv3X-0006kl-Of for emacs-devel@gnu.org; Fri, 28 Aug 2009 02:35:27 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:30676) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mgv3X-0006d4-1U for emacs-devel@gnu.org; Fri, 28 Aug 2009 02:35:27 -0400 Original-Received: from mail-ew0-f211.google.com ([209.85.219.211]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mgv3S-0002xm-A1 for emacs-devel@gnu.org; Fri, 28 Aug 2009 02:35:22 -0400 Original-Received: by ewy7 with SMTP id 7so1828570ewy.31 for ; Thu, 27 Aug 2009 23:35:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=IundKFMuDxdXH04h3/6o0y92n3K1uuy0AueLz3sxz4I=; b=ftDdH7XtiVLhpGNVn9mI8T5o+dr18u9FoCBqcjyHPdNNeIPBqn/mx5cnvczUmCCT3h nWmZCVXSk1xOLubsyN1aa0BNqzH7vjjO2EIhUWby4A2y4K0boFpbu1DAxclGrC0EqB3A liEVRYWnwiKxMOk3wELRAPipX6Tzu9Cm24xGg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=YI3s57EqrMYxFIzzB1ZKg5OTmsRoV+zBuy5vOamwO46wFj96McRkxoPuR7LfcoG0RB G5i5XJfOZFGnNybORPOBqstbr/xz8fdsE0IYDUCAu9P6wt9ToD4874/yciUzMQMOTaJa eSK3Qo0i7P6eYfmZPBja0z38TgqbOa57HdYnQ= Original-Received: by 10.216.28.207 with SMTP id g57mr162932wea.163.1251441316451; Thu, 27 Aug 2009 23:35:16 -0700 (PDT) In-Reply-To: X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Fri, 28 Aug 2009 02:36:56 -0400 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:114721 Archived-At: 2009/8/28 Drew Adams : > Using the technique I mentioned, you can get the behavior you listed (C-x= o, C-x > o o o..., C-x C-x, etc) immediately: > > (defun other-window-repeat () > =C2=A0(interactive) > =C2=A0(repeat-command 'other-window)) > > (define-key ctl-x-map "o" 'other-window-repeat) > Is it possible to make *all* key sequences repeatable? Creating the above code for every single key sequence is tiresome... > The real point was to be able to use this technique also for a prefix key= : to be > able to have a prefix key perform some action when repeated. Why? > > a. To have additional easily repeatable keys (giving existing prefix keys= double > duty). > > b. To have additional prefix keys (giving existing non-prefix keys double= duty). > My proposal solves a) and b) too: a) C-x C-x becomes easily repeatable (1 + n instead of 2n keys for n repeatitions); b) You may make C-a prefix key, and bind C-a C-a to repeatable command (again, 1 + n keys for n repeatitions, like in your method). Is it correct that the difference between our proposals is the following? 1) Your method requires user to bind the prefix key (e.g. C-x, M-s h). 2) My method requires user to bind the whole key sequence for the first repeatition (e.g. C-x C-x, M-s h h). Andrey