Deniz Dogan <deniz.a.m.do...@gmail.com> writes:

> Unfortunately, that breaks yet another convention, which is that C-c
> <letter> are for users and should not be bound to anything in any
> external mode.

Doing `C-h m' while visiting a Python file, I currently see two
culprits:

C-c c           py-compute-indentation
C-x n d         py-narrow-to-defun

This is important to respect the convention.  The space left for users
to install their own keybinding is tiny, and should be respected.  For
one, I have many C-c <letter> prefixes, opening into a lot of three keys
commands.

By the way, let me mention that Org mode has a rather original way to
circumvent this convention, without breaking it.  If I remember
correctly, they clearly and prominently document that users should
install these bindings or prefixes themselves, explaining how to do so,
and providing examples.  Since the user does it, and not them, they are
lawful good.  Users then choose bindings differently than in the
examples, if they know they would clash in some way.

Forcefully defining C-c <letter> in modes with the excuse that "users
may redefine them if they do not like it", is breaking the convention.

François
_______________________________________________
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode

Reply via email to