unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Changing key bindings of printable chars
Date: Fri, 25 Jun 2004 12:22:30 -0600	[thread overview]
Message-ID: <40DC6D66.3060307@yahoo.com> (raw)
In-Reply-To: 87llicjw18.fsf@indigo.shootybangbang.com

John Paul Wallington wrote:
 > Michael Slass <miknrene@drizzle.com> writes:
 >>"Paul Batt" <paul@pbatt.ch> writes:
 >>>How can I change the key binding of a single printable character key to
 >>>another? I need to have "z" and "Z" print "y" and "Y" and vice versa and I
 > [...]
 >
 >>for Y,y,Z, and z ...
 >>(local-set-key "Y" (lambda () (interactive) (insert "Z")))
 >
 > Commands needn't be functions -- they could be simple keyboard macros,
 > eg:  (global-set-key "Y" "Z")

Yes, but that combined with (global-set-key "Z" "Y") to meet Paul's
requirements leads to infinite recursion.

-- 
Kevin Rodgers

  reply	other threads:[~2004-06-25 18:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-24 21:04 Changing key bindings of printable chars Paul Batt
2004-06-24 23:34 ` Michael Slass
2004-06-25  0:55   ` John Paul Wallington
2004-06-25 18:22     ` Kevin Rodgers [this message]
2004-06-26  0:30       ` John Paul Wallington
2004-06-26  1:26         ` Pascal Bourguignon
2004-06-25 20:31   ` Paul Batt
2004-06-25 22:56     ` Michael Slass
2004-06-26  0:05       ` Paul Batt
2004-06-30 15:34     ` Kai Grossjohann
2004-06-24 23:46 ` David Vanderschel

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=40DC6D66.3060307@yahoo.com \
    --to=ihs_4664@yahoo.com \
    /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.
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).