unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Noah Lavine <noah549@gmail.com>
To: u.s.reddy@cs.bham.ac.uk
Cc: emacs-devel@gnu.org
Subject: Re: Key bindings proposal [Was: Emacs learning curve]
Date: Wed, 28 Jul 2010 20:08:10 -0400	[thread overview]
Message-ID: <E5CA6FE6-E28F-4DC2-9E9A-6D867E4D9428@gmail.com> (raw)

Hello,

I am writing because I am trying to understand exactly what the keybindings proposal requires. As I understand it, this chain of events will produce an undesired result:

1. Global keymap says "C-y" -> yank
2. You map "C-z" -> yank and send "C-y" to something else
3. Gzip major mode says "C-z" -> compress and "C-y" -> gzip-special-yank

At this point typing "C-z" runs 'compress' and typing "C-y" runs 'gzip-special-yank', whereas the desired result was that "C-z" would be gzip-special-yank and "C-y" would be compress, because you have indicated your preference that "C-z" be used for yank instead of "C-y".

Remap would not accomplish this (at least not by itself), because there is no standard command analogous to 'compress' that gzip-mode should have remapped. However, as long as there is a command anywhere in the keymap that is analogous to yank, then "C-z" should have been mapped to that, and its keybinding moved as necessary (perhaps to "C-y").

Is this an accurate statement of the idea?

Noah


             reply	other threads:[~2010-07-29  0:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-29  0:08 Noah Lavine [this message]
2010-07-29 11:26 ` Key bindings proposal [Was: Emacs learning curve] Uday S Reddy
2010-07-29 12:21   ` Key bindings proposal joakim
2010-07-29 14:16     ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2010-07-26 22:01 Key bindings proposal [Was: Emacs learning curve] Uday S Reddy
2010-07-27  3:17 ` Stephen J. Turnbull

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=E5CA6FE6-E28F-4DC2-9E9A-6D867E4D9428@gmail.com \
    --to=noah549@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=u.s.reddy@cs.bham.ac.uk \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).