unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Benjamin Rutt <rutt+news@cis.ohio-state.edu>
Subject: Re: How to swap M-TAB and M-`
Date: Tue, 29 Oct 2002 18:57:12 -0500	[thread overview]
Message-ID: <wc3d6psol2f.fsf@eta.cis.ohio-state.edu> (raw)
In-Reply-To: 3DBEC4EE.9020007@ihs.com

Kevin Rodgers <kevinr@ihs.com> writes:

> Exactly.  Do keyboard-translate and keyboard-translate-table handle arbitrary
> keyboard events, or just characters?  The "Keyboard Translations" Info node of
> the Emacs manual indicates the latter:
>
> 	... there is only one set of keyboard
> 	translations, and it applies to every character that Emacs reads from
> 	the terminal.  Keyboard translations take place at the lowest level of
> 	input processing; the keys that are looked up in keymaps contain the
> 	characters that result from keyboard translation.
>
>
> 	...  Keyboard translations affect only ASCII character input, not
> 	function keys;
>
> So perhaps you need to use key-translation-map instead.

Good idea.  As an example, I've had good luck translating C-M-tab into
M-tab with the following:

(define-key key-translation-map (kbd "<C-M-tab>") "\e\t")
-- 
Benjamin

      reply	other threads:[~2002-10-29 23:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-25  0:44 How to swap M-TAB and M-` Jiri Pejchal
2002-10-25  3:35 ` Michael Slass
2002-10-25 19:46 ` Benjamin Rutt
2002-10-26  9:04   ` Jiri Pejchal
2002-10-26 14:40     ` Benjamin Rutt
2002-10-29 12:36       ` Jiri Pejchal
2002-10-29 17:27         ` Kevin Rodgers
2002-10-29 23:57           ` Benjamin Rutt [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

  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=wc3d6psol2f.fsf@eta.cis.ohio-state.edu \
    --to=rutt+news@cis.ohio-state.edu \
    /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).