Backspace deletes spaces not tabs

Asked by Noah

I know it's called backspace, but I'd like it to remove a full tab if I'm at the end of a line with only whitespace. I'm having trouble getting the `py-electric-backspace` command to execute when I hit backspace at the end of a line of only spaces in python-mode. When I hit backspace it deletes individual spaces, not 4 at a time as it should be.

What confuses me is that if I do `M-x py-electric-backspace`, it performs the command correctly and tells me I could have invoked the command by using backspace:

    You can run the command `py-electric-backspace' with <backspace>

I'm using python-mode.el version 6.0.10, and I've tried reducing my .emacs file to only the few lines required to load python-mode.el. I'm running the terminal in MacOS X 10.6.8, with emacs 24.1.1.

I'd like backspace to work properly in python-mode, but I don't even know where to start figuring out what's wrong. Any help would be appreciated.

Question information

Language:
English Edit question
Status:
Answered
For:
python-mode.el Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Andreas Roehler (a-roehler) said :
#1

Am 20.07.2012 00:11, schrieb Noah:
> Question #203672 on python-mode.el changed:
> https://answers.launchpad.net/python-mode/+question/203672
>
> Description changed to:
> I know it's called backspace, but I'd like it to remove a full tab if
> I'm at the end of a line with only whitespace. I'm having trouble
> getting the `py-electric-backspace` command to execute when I hit
> backspace at the end of a line of only spaces in python-mode. When I hit
> backspace it deletes individual spaces, not 4 at a time as it should be.
>
> What confuses me is that if I do `M-x py-electric-backspace`, it
> performs the command correctly and tells me I could have invoked the
> command by using backspace:
>
> You can run the command `py-electric-backspace' with <backspace>
>
> I'm using python-mode.el version 6.0.10, and I've tried reducing my
> .emacs file to only the few lines required to load python-mode.el. I'm
> running the terminal in MacOS X 10.6.8, with emacs 24.1.1.
>
> I'd like backspace to work properly in python-mode, but I don't even
> know where to start figuring out what's wrong. Any help would be
> appreciated.
>

please file a bug-report and link this question to it

thanks

Andreas

Can you help with this problem?

Provide an answer of your own, or ask Noah for more information if necessary.

To post a message you must log in.