help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to swap M-TAB and M-`


From: Kevin Rodgers
Subject: Re: How to swap M-TAB and M-`
Date: Tue, 29 Oct 2002 10:27:10 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

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 via email to

[Prev in Thread] Current Thread [Next in Thread]