Hrvoje Niksic <hniksic(a)srce.hr> writes:
Awful. So what is the right way to fix it, then?
1. Use a predefined minor mode map. Then a user who does not want the binding
can put a new definition by changing this map. Something like that?
2. Otherwise use some 'vc-bind-obnoxious-keys' variable?
3. Your ;;;###autoload <stuff here>
isn't that bad either as it behaves just like vc-hooks.el was dumped
like it is in FSF Emacs.
4. Use
(substitute-key-definition 'toggle-read-only 'vc-toggle-read-only
global-map)
as that is what is really meant anyway.
> Wouldn't the best solution be if VC simply bound this in a
minor
> mode map?
But then you're still overriding the user's explicit choice.
Yes, but
a. Only for files where there is version control.
b. So what? The user should use 'C-c letter' for his bindings.
Jan