I just encountered this problem using:
- ssh from Windows, using PuTTY 0.60
- into an AIX 5.3 box
- on emacs 23.1
The DEL key, as usual, runs backward-delete-char (which is what I expected, though I never USE the DEL character...), but the BACKSPACE key was running delete-char. Attempting to rebind the key using C-? failed miserably. I eventually used
this trick to get these bindings for my init.el:
Code:
(global-set-key (quote [deletechar]) (quote backward-delete-char))
(global-set-key (quote [27 deletechar]) (quote backward-kill-word))
THe key insight was discovering that [deletechar] is what I need to bind, not C-?.
Curiously, I compiled the exact same emacs download on Solaris, and it does NOT suffer from this behavior, used from the same PuTTY setup. Weird.