unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <kevinr@ihs.com>
Subject: Re: How to swap M-TAB and M-`
Date: Tue, 29 Oct 2002 10:27:10 -0700	[thread overview]
Message-ID: <3DBEC4EE.9020007@ihs.com> (raw)
In-Reply-To: Pine.LNX.4.33.0210291328150.5616-100000@nymfe34.fi.muni.cz

Jiri Pejchal wrote:

> On Sat, 26 Oct 2002, Benjamin Rutt wrote:
> 
> 
>>Jiri Pejchal <xpejchal@nymfe34.fi.muni.cz> writes:
>>
>>
>>>That's it. But when I try:
>>>
>>>(keyboard-translate ?\M-` ?\M-\t)
>>>
>>>I get following error:
>>>
>>>Error in init file: Args out of range: #^[t nil nil nil nil nil nil nil nil nil nil ni\
>>>l nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil ....
>>>
>>Try placing (setq debug-on-error t) at the top of your .emacs and post
>>the resulting backtrace.
>>
> 
> The same error:
> 
> An error has occurred while loading `/home/xpejchal/.emacs':
> 
> Args out of range: #^[t nil nil nil nil nil ni nil nil nil nil nil nil nil ...\
> .... 
> It ends:
> nil nil nil keyboard-translate-table], -134217632


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.


-- 
<a href="mailto:&lt;kevinr&#64;ihs.com&gt;">Kevin Rodgers</a>

  reply	other threads:[~2002-10-29 17:27 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 [this message]
2002-10-29 23:57           ` Benjamin Rutt

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=3DBEC4EE.9020007@ihs.com \
    --to=kevinr@ihs.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).