Bug#486226: ocaml-mode: caml-mode bogusly binds C-c <letter> combinations
>From the node "Coding Conventions" from edition 2.9 of the GNU Emacs
Lisp Reference Manual, corresponding to GNU Emacs version 22.2:
* Please do not define `C-c LETTER' as a key in Lisp programs.
Sequences consisting of `C-c' and a letter (either upper or lower
case) are reserved for users; they are the *only* sequences
reserved for users, so do not block them.
Changing all the Emacs major modes to respect this convention was
a lot of work; abandoning this convention would make that work go
to waste, and inconvenience users. Please comply with it.
However, caml-mode defines several C-c <letter> sequences, including
the letters (b f i l m t w). In fact, it appears to try to bind C-c i
twice: once as ocaml-add-path on line 303 of caml.el, and once as
caml-insert-if-form on line 311, with the latter taking precedence.
I have inserted code into my .emacs to work around this by destroying
all the errant C-c <letter> bindings, but Caml mode should be changed
to avoid using these. Perhaps a transition period would be necessary
so that existing users of those keybindings have time to get used to
using different ones, or to set a customize option to enable the old
I am willing to fix this myself iff it will result in caml-mode no
longer binding C-c <letter> sequences by default.
---> Drake Wilson
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (990, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 220.127.116.11 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages ocaml-mode depends on:
ii emacs22 [emacsen] 22.2+2-2 The GNU Emacs editor
ocaml-mode recommends no packages.
-- no debconf information