In my python-mode the backspace and delete keys gets remapped to py-electric-backspace, etc. This breaks the behaviour set by the variable delete-active-region.

Is there a way to unify the behaviour so that when I mark a region and press delete it will actually delete the region and if unmarked act as dedicated by py-electric-backspace?

A related question has been posted here, but not completely applicable.

EDIT: This has been fixed in the latest python-mode package by Andreas (See comments below)


The normal way to fix this is to fix py-electric-backspace to check use-region-p and delete-active-region and handle them as expected.

IOW, I'd submit a bug report to the maintainers of the package.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.