From: Andrey Paramonov <cmr.Pent@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: have cake will eat, eat cake will have - krazy key koncept kontroversy
Date: Thu, 27 Aug 2009 17:58:35 +0000 (UTC) [thread overview]
Message-ID: <loom.20090827T195747-305@post.gmane.org> (raw)
In-Reply-To: 732931969EE046E8A44CE77C4FD88C64@us.oracle.com
Drew Adams <drew.adams <at> 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
next prev parent reply other threads:[~2009-08-27 17:58 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 [this message]
2009-08-27 20:41 ` have cake will eat, eatcake " Drew Adams
2009-08-28 6:35 ` Андрей Парамонов
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=loom.20090827T195747-305@post.gmane.org \
--to=cmr.pent@gmail.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.