all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Андрей Парамонов" <cmr.pent@gmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: emacs-devel@gnu.org
Subject: Re: have cake will eat, eatcake will have - krazy key koncept  kontroversy
Date: Fri, 28 Aug 2009 10:35:16 +0400	[thread overview]
Message-ID: <5f0660120908272335u64242281o1e2716c662dd8ca5@mail.gmail.com> (raw)
In-Reply-To: <E4672959BA664F7BA94C52E005BD8D37@us.oracle.com>

2009/8/28 Drew Adams <drew.adams@oracle.com>:
> 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 ()
>  (interactive)
>  (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




  reply	other threads:[~2009-08-28  6:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-27  1:36 have cake will eat, eat cake will have - krazy key koncept kontroversy Drew Adams
2009-08-27 17:58 ` Andrey Paramonov
2009-08-27 20:41   ` have cake will eat, eatcake " Drew Adams
2009-08-28  6:35     ` Андрей Парамонов [this message]
2009-08-28  9:09       ` Andreas Schwab
2009-08-28  9:16         ` Андрей Парамонов
2009-08-28  9:35           ` Andreas Schwab
2009-08-28 15:34       ` Drew Adams
2009-08-28  0:35 ` have cake will eat, eat cake " Juri Linkov
2009-08-28  2:31   ` Miles Bader
2009-08-28 15:34     ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5f0660120908272335u64242281o1e2716c662dd8ca5@mail.gmail.com \
    --to=cmr.pent@gmail.com \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.