all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Miles Bader'" <miles@gnu.org>, "'Juri Linkov'" <juri@jurta.org>
Cc: 'Emacs-Devel devel' <emacs-devel@gnu.org>
Subject: RE: have cake will eat, eat cake will have - krazy key koncept kontroversy
Date: Fri, 28 Aug 2009 08:34:20 -0700	[thread overview]
Message-ID: <666EFBA8E42040E5B68F2C80CC8FEFD7@us.oracle.com> (raw)
In-Reply-To: <buo1vmwzn1w.fsf@dhlpc061.dev.necel.com>

> Juri Linkov <juri@jurta.org> writes:
> >> 11. WDOT?  Is this a good idea in general or not?  If so, 
> >>     do you have a good idea for an implementation of #9?
> >
> > Cua-mode uses a short delay
> > (`cua-prefix-override-inhibit-delay') to decide
> > between interpreting a key as a prefix key or using its
> > own binding.
> 
> Note that this sort of test is notoriously flaky, and should only be
> used if there's no other choice.  It's far, far, better, to 
> simply avoid the ambiguity in the first place.

In addition to Miles's point (orthogonal to it):

It's good to consider multiple possible implementations. For the subject at
hand, however, I don't think such a delay would be helpful.

IIUC, in CUA mode a delay distinguishes `C-x <delay> C-f', as cut followed by
forward-char, from `C-x C-f' as find-file.

But the discussion is about repeating the prefix key. If `C-x' for CUA were some
repeatable action (e.g. shrink the window) instead of cut, then to repeatedly
act you would need to do `C-x <delay> C-x C-x C-x' (or maybe even `C-x <delay>
C-x <delay> C-x...'; dunno).

If you're going to do that, you might as well use the approach I suggested, and
simply hit `C-x' twice: `C-x C-x' is about as easy as `C-x <delay>', especially
when repetition is involved: `C-x C-x C-x' (hold pressed) vs `C-x <delay> C-x'
(or perhaps `C-x <delay> C-x <delay>').

Anyway, I'm glad you mentioned this alternative approach. The more the merrier.





      reply	other threads:[~2009-08-28 15:34 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     ` Андрей Парамонов
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 [this message]

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=666EFBA8E42040E5B68F2C80CC8FEFD7@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.org \
    --cc=miles@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.