unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Emacs key bindings + Putty
@ 2010-06-13 18:13 Xavier MARCELET
  2010-06-14  9:30 ` Michal Sojka
  0 siblings, 1 reply; 3+ messages in thread
From: Xavier MARCELET @ 2010-06-13 18:13 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I'm using emacs on a remote server on which I'm connecting via SSH either
from a native Linux console or from Windows using Putty. 
I have configured all my emacs bindings and they all work well when I'm
connecting through Linux.
My problem is that some of them don't work with Putty.

For instance, I've defined  " (global-set-key [A-down]  'end-of-buffer) "
which triggers when I'm pressing ALT+down on Linux.
When using Putty, the binding does not work.

When using describe-key function, emacs answers : 
ESC <down> (translated from ESC M-O B) is undefined

Obviously, I could add the following directive to my .emacs and it would do
the job :
(global-set-key (kbd "ESC <down>") 'end-of-buffer)

However, I'm looking for a way to "redefine" keys so that emacs translates
"ESC M-O B" to " [A-down] " instead of "ESC <down>". 
I have the same problem with the "C-x <right>" key. When using putty, emacs
translates "C-x M-[ C"  as "C-x <right>" instead of "C-x <C-right>"
How can I do that ?

Thanks for your help,

-- 
Xavier





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Emacs key bindings + Putty
  2010-06-13 18:13 Emacs key bindings + Putty Xavier MARCELET
@ 2010-06-14  9:30 ` Michal Sojka
  2010-06-14 11:29   ` Xavier MARCELET
  0 siblings, 1 reply; 3+ messages in thread
From: Michal Sojka @ 2010-06-14  9:30 UTC (permalink / raw)
  To: Xavier MARCELET, help-gnu-emacs

On Sun, 13 Jun 2010, Xavier MARCELET wrote:
> Hi,
> 
> I'm using emacs on a remote server on which I'm connecting via SSH either
> from a native Linux console or from Windows using Putty. 
> I have configured all my emacs bindings and they all work well when I'm
> connecting through Linux.
> My problem is that some of them don't work with Putty.
> 
> For instance, I've defined  " (global-set-key [A-down]  'end-of-buffer) "
> which triggers when I'm pressing ALT+down on Linux.
> When using Putty, the binding does not work.
> 
> When using describe-key function, emacs answers : 
> ESC <down> (translated from ESC M-O B) is undefined

Hi, you can specify the terminal type in Putty configuration. Try to set
it to "Linux".

-Michal



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Emacs key bindings + Putty
  2010-06-14  9:30 ` Michal Sojka
@ 2010-06-14 11:29   ` Xavier MARCELET
  0 siblings, 0 replies; 3+ messages in thread
From: Xavier MARCELET @ 2010-06-14 11:29 UTC (permalink / raw)
  Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1173 bytes --]

Michal Sojka a écrit :
> On Sun, 13 Jun 2010, Xavier MARCELET wrote:
>   
>> Hi,
>>
>> I'm using emacs on a remote server on which I'm connecting via SSH either
>> from a native Linux console or from Windows using Putty. 
>> I have configured all my emacs bindings and they all work well when I'm
>> connecting through Linux.
>> My problem is that some of them don't work with Putty.
>>
>> For instance, I've defined  " (global-set-key [A-down]  'end-of-buffer) "
>> which triggers when I'm pressing ALT+down on Linux.
>> When using Putty, the binding does not work.
>>
>> When using describe-key function, emacs answers : 
>> ESC <down> (translated from ESC M-O B) is undefined
>>     
>
> Hi, you can specify the terminal type in Putty configuration. Try to set
> it to "Linux".
>
> -Michal
>   
Hi Michal,

Are you talking about the "Function keys and Keypad option" in the 
"Terminal"
configuration section ? If yes, I already tried every possible values 
for this option
and this does not change the emacs interpretation of my keys. From what 
I read
about this feature, it changes only the keypad and the F1->F12 keys.

-- 
Xavier

[-- Attachment #2: Type: text/html, Size: 1548 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-14 11:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-13 18:13 Emacs key bindings + Putty Xavier MARCELET
2010-06-14  9:30 ` Michal Sojka
2010-06-14 11:29   ` Xavier MARCELET

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).