#486226 ocaml-mode: caml-mode bogusly binds C-c <letter> combinations

Package:
ocaml-mode
Source:
caml-mode
Submitter:
Drake Wilson
Date:
2023-07-04 18:33:05 UTC
Severity:
normal
Tags:
#486226#5
Date:
2008-06-14 13:05:59 UTC
From:
To:
Package: ocaml-mode
Version: 3.10.2-3
Severity: normal
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
keybindings.

I am willing to fix this myself iff it will result in caml-mode no
longer binding C-c <letter> sequences by default.

#486226#10
Date:
2023-07-04 18:24:23 UTC
From:
To:
Hello,

I have tagged this bug as wontfix. What you ask for is too invasive on
users of caml-mode, changing these key bindings would mean that users
of the debian package will have completely different key bindings than
users of the upstream package.

Best -Ralf.