* ctl-x-map woes
@ 2011-01-05 8:59 Deniz Dogan
0 siblings, 0 replies; 3+ messages in thread
From: Deniz Dogan @ 2011-01-05 8:59 UTC (permalink / raw)
To: emacs-help
Hi
I bind C-t to ctl-x-map so I can use C-t as a replacement prefix for
most C-x commands, e.g., C-t C-s, C-t C-f, etc.
But I have noticed that C-t 8 RET is the only C-x 8 key that works
when I do this. None of the other C-x 8 keys map to C-t 8.
Why is this?
--
Deniz Dogan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ctl-x-map woes
[not found] <mailman.4.1294217994.22560.help-gnu-emacs@gnu.org>
@ 2011-01-10 17:49 ` Stefan Monnier
2011-01-10 23:45 ` Deniz Dogan
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2011-01-10 17:49 UTC (permalink / raw)
To: help-gnu-emacs
> I bind C-t to ctl-x-map so I can use C-t as a replacement prefix for
> most C-x commands, e.g., C-t C-s, C-t C-f, etc.
> But I have noticed that C-t 8 RET is the only C-x 8 key that works
> when I do this. None of the other C-x 8 keys map to C-t 8.
Because all the other C-x 8 "bindings" are not bindings to commands but
are key remappings, i.e., they're not in the global-map but in the
key-translation-map. E.g., this means that you can run the command
bound to "C-c é" (if any) by typing "C-c C-x 8 ' e".
So maybe
(define-key key-translation-map [?\C-t]
(lookup-key key-translation-map [?\C-x]))
will complete your C-t to also apply to C-t 8 ' e.
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ctl-x-map woes
2011-01-10 17:49 ` ctl-x-map woes Stefan Monnier
@ 2011-01-10 23:45 ` Deniz Dogan
0 siblings, 0 replies; 3+ messages in thread
From: Deniz Dogan @ 2011-01-10 23:45 UTC (permalink / raw)
To: Stefan Monnier; +Cc: help-gnu-emacs
2011/1/10 Stefan Monnier <monnier@iro.umontreal.ca>:
>> I bind C-t to ctl-x-map so I can use C-t as a replacement prefix for
>> most C-x commands, e.g., C-t C-s, C-t C-f, etc.
>
>> But I have noticed that C-t 8 RET is the only C-x 8 key that works
>> when I do this. None of the other C-x 8 keys map to C-t 8.
>
> Because all the other C-x 8 "bindings" are not bindings to commands but
> are key remappings, i.e., they're not in the global-map but in the
> key-translation-map. E.g., this means that you can run the command
> bound to "C-c é" (if any) by typing "C-c C-x 8 ' e".
>
> So maybe
>
> (define-key key-translation-map [?\C-t]
> (lookup-key key-translation-map [?\C-x]))
>
> will complete your C-t to also apply to C-t 8 ' e.
>
Thank you, this works perfectly.
--
Deniz Dogan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-01-10 23:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.4.1294217994.22560.help-gnu-emacs@gnu.org>
2011-01-10 17:49 ` ctl-x-map woes Stefan Monnier
2011-01-10 23:45 ` Deniz Dogan
2011-01-05 8:59 Deniz Dogan
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).