py-hungry-delete-backwards is broken

Bug #953777 reported by Boris Kheyfets
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Invalid
Medium
Andreas Roehler

Bug Description

<C-backspace> is binded to py-hungry-delete-backwards and, as far as I understand - it should delete the whole word or subword backward. While currently it deletes only a single char.

Changed in python-mode:
assignee: nobody → Andreas Roehler (a-roehler)
milestone: none → 6.0.6
importance: Undecided → Medium
Revision history for this message
Boris Kheyfets (kheyfboris) wrote :

Mean while the following solves it:

(add-hook 'python-mode-hook (lambda ()
                                       (define-key python-mode-map (kbd "<C-backspace>") 'subword-backward-kill)
                              ))

Revision history for this message
Andreas Roehler (a-roehler) wrote :

docstring says:

Delete the preceding character or all preceding whitespace
back to the previous non-whitespace character.

i.e. it's hungry at whitespaces only

you may write a feature request for subword-backward-kill BTW

closing this as invalid,

cheers,

Andreas

Changed in python-mode:
status: New → Invalid
Revision history for this message
Boris Kheyfets (kheyfboris) wrote :

Ok. Sorry - I should have read the doc-string my self.

No need for a feature-request I think - since it is easy achieved as an add-hook.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.