Comment 3 for bug 1027100

Revision history for this message
Andreas Roehler (a-roehler) wrote : Re: [Bug 1027100] Re: Backspace deletes spaces not tabs

Am 22.07.2012 22:00, schrieb Noah:
> Apparently delete, forward delete and backspace are three different keys
> in Linux (?). My backspace key seems to be sending DEL rather than
> backspace, and I've managed to bind DEL to py-electric-backspace in
> python-mode. My setup (older python-mode) on a different computer worked
> fine so I assume that binding has since disappeared, but I can't rule
> out some other difference between the setups.
>
> When I get a chance, I'll try out the old python-mode on the newer
> computer to see if it's in python-mode or somewhere else. My emacs-fu is
> limited, but here's the fix I'm using for now:
>
> (add-hook 'python-mode-hook
> (lambda () (define-key python-mode-map (kbd "DEL") 'py-electric-backspace)))
>

Maybe we should consider system-type here?
The output of M-x emacs-version might be of some interest.