[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: strange key handling on a terminal
From: |
Dan Nicolaescu |
Subject: |
Re: strange key handling on a terminal |
Date: |
Fri, 21 Jul 2006 10:11:28 -0700 |
Stefan Monnier <address@hidden> writes:
> > I am using xterm-215 that emits escape sequences for some key
> > combinations that did not emit any special sequence.
>
> > For example C-. emits "\e[27;5;46~"
>
> > Now if I do:
>
> > emacs -q -nw
> > M-: (define-key function-key-map "\e[27;5;46~" [(control ?\.)]) RET
> > M-x global-set-key RET C-. RET indent-region RET
>
> Sorry, I missed this second line on first reading.
> But also I failed to notice that the first line is incorrect: the XEmacs
> syntax [(control ?\.)] is only supported for the second arg of define-key,
> not the third.
I wasn't aware that [(control ?\.)] was XEmacs syntax, I just copied
it from flyspell.el ...
What is the emacs way to bind C-. ? (kbd "C-.") ?
It seems that using (kbd "C-.") works in my example. I'll fix xterm.el,
it uses [(control ?\.)].
> I'm wondering how it worked in Emacs-21.4.
I am not sure, I cannot reproduce it anymore, not sure what I did the
first time...
Re: strange key handling on a terminal, Johan Bockgård, 2006/07/21