Re: more key bindings for xterm

2005-04-20 Thread Richard Stallman
Duh, I didn't pay attention to the `substitute-key-definition' and simply assumed it was `define-key'. Sorry for my being so dense, Couldn't we use key-remapping instead? I think that would be cleaner than using substitute-key-definition. ___

Re: more key bindings for xterm

2005-04-19 Thread Dan Nicolaescu
[I am replying to this message, but I will try to address all the concerns that have been expressed in this thread]. Stefan Monnier [EMAIL PROTECTED] writes: Would it be acceptable to add something like: (substitute-key-definition [f29] [C-f5] function-key-map) to xterm.el? Would

Re: more key bindings for xterm

2005-04-19 Thread Stefan Monnier
Would it be acceptable to add something like: (substitute-key-definition [f29] [C-f5] function-key-map) to xterm.el? Would it work? As I said in another message substitute-key-definition works, and the reason why it would be needed is what you just stated above. Duh, I didn't pay

Re: more key bindings for xterm

2005-04-15 Thread Richard Stallman
Would it be acceptable to add something like: (substitute-key-definition [f29] [C-f5] function-key-map) to xterm.el? Does any terminal have a real f29 key? If not, why not just define function-key-map to map it unconditionally into C-f5? ___

Re: more key bindings for xterm

2005-04-15 Thread Dan Nicolaescu
Richard Stallman [EMAIL PROTECTED] writes: Would it be acceptable to add something like: (substitute-key-definition [f29] [C-f5] function-key-map) to xterm.el? Does any terminal have a real f29 key? No idea. If not, why not just define function-key-map to map it

Re: more key bindings for xterm

2005-04-14 Thread Richard Stallman
But it seems that X.org is now what most people seem to be converging to. So supporting these bindings should be helpful for a lot of users. I agree, but I think we should document the situation so people won't be puzzled when some things sometimes don't work.

Re: more key bindings for xterm

2005-04-14 Thread Dan Nicolaescu
Dan Nicolaescu [EMAIL PROTECTED] writes: Stefan Monnier [EMAIL PROTECTED] writes: In what xterm did you test these? I remember vaguely that I tried in the past to add more bindings to xterm.el, but abandoned the idea after I discovered that different flavors of

Re: more key bindings for xterm

2005-04-14 Thread Stefan Monnier
Would it be acceptable to add something like: (substitute-key-definition [f29] [C-f5] function-key-map) to xterm.el? Would it work? I thought the translation from esc-sequence to f29 is already done by function-key-map (with elements added by reading the terminfo data) and you function-key-map

Re: more key bindings for xterm

2005-04-14 Thread Dan Nicolaescu
Stefan Monnier [EMAIL PROTECTED] writes: Would it be acceptable to add something like: (substitute-key-definition [f29] [C-f5] function-key-map) to xterm.el? Would it work? It does, I tested it. I thought the translation from esc-sequence to f29 is already done by

Re: more key bindings for xterm

2005-04-13 Thread Eli Zaretskii
Cc: Dan Nicolaescu [EMAIL PROTECTED], emacs-pretest-bug@gnu.org From: Stefan Monnier [EMAIL PROTECTED] Date: Wed, 13 Apr 2005 08:18:18 -0400 In what xterm did you test these? I remember vaguely that I tried in the past to add more bindings to xterm.el, but abandoned the idea after I

Re: more key bindings for xterm

2005-04-13 Thread Stefan Monnier
In what xterm did you test these? I remember vaguely that I tried in the past to add more bindings to xterm.el, but abandoned the idea after I discovered that different flavors of Unix had xterm's that used incompatible bindings. Luckily, tho the bindings are sometimes different, they

Re: more key bindings for xterm

2005-04-13 Thread Dan Nicolaescu
Stefan Monnier [EMAIL PROTECTED] writes: In what xterm did you test these? I remember vaguely that I tried in the past to add more bindings to xterm.el, but abandoned the idea after I discovered that different flavors of Unix had xterm's that used incompatible bindings.

more key bindings for xterm

2005-04-12 Thread Dan Nicolaescu
xterm emits different strings for S-function_key, C-function_key, A-function_key, C-S-function_key, A-C-function_key, A-S-function_key where function_key is one of: f1...f12, prior, next, home, end, insert, delete, prior, next, up, down, left, right. xterm.el does not have support for all