From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrey Paramonov Newsgroups: gmane.emacs.devel Subject: Re: have cake will eat, eat cake will have - krazy key koncept kontroversy Date: Thu, 27 Aug 2009 17:58:35 +0000 (UTC) Message-ID: References: <732931969EE046E8A44CE77C4FD88C64@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1251396223 9011 80.91.229.12 (27 Aug 2009 18:03:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Aug 2009 18:03:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 27 20:03:36 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 1MgjJv-0004Gw-3Q for ged-emacs-devel@m.gmane.org; Thu, 27 Aug 2009 20:03:36 +0200 Original-Received: from localhost ([127.0.0.1]:55308 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgjJu-0005A4-I5 for ged-emacs-devel@m.gmane.org; Thu, 27 Aug 2009 14:03:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MgjFl-0002pa-2m for emacs-devel@gnu.org; Thu, 27 Aug 2009 13:59:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MgjFg-0002ny-I6 for emacs-devel@gnu.org; Thu, 27 Aug 2009 13:59:16 -0400 Original-Received: from [199.232.76.173] (port=47809 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgjFg-0002nt-Ds for emacs-devel@gnu.org; Thu, 27 Aug 2009 13:59:12 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:54442) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MgjFf-00017r-Jt for emacs-devel@gnu.org; Thu, 27 Aug 2009 13:59:12 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1MgjFU-000308-03 for emacs-devel@gnu.org; Thu, 27 Aug 2009 19:59:00 +0200 Original-Received: from aparamon.static.corbina.ru ([89.179.245.94]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Aug 2009 19:58:59 +0200 Original-Received: from cmr.Pent by aparamon.static.corbina.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Aug 2009 19:58:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 39 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 89.179.245.94 (Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090707 Iceweasel/3.5.1 (Debian-3.5.1-1)) X-detected-operating-system: by monty-python.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:114696 Archived-At: Drew Adams oracle.com> writes: > OK, here comes the crazy, controversial part... [the crazy, controversial part skipped] Hello! I see the problem you are trying to solve. Your solution pros: 1) It has a sketch of elegant implementation, 2) It does solve the problem. Your solution cons: 1) In many cases, user will have to hit prefix twice instead of once (C-a C-a instead of C-a). I suggest to go the other way around: IF there is no keymap entry that matches the key sequence *and* the previous key has successfully executed a command *and* the key equals to the previous key THEN repeat the command (and keep processing the key sequence). For example: C-x o will take me to other window C-x o o o o ... will cycle me through windows C-x C-f will work as used to C-x C-x will exchange point and mark C-x C-x C-x will exchange point and mark twice C-x C-x C-x C-x will exchange point and mark three times This approach does not impose extra key penalty for non-repetitive command execution. In Emacs 23, C-x C-= / C-x C-- (text-scale-adjust) work this way. I find it very useful and intuitive. Andrey Paramonov