Red Hat Bugzilla – Bug 57776
rpm-spec-mode redefines C-u
Last modified: 2014-08-11 01:46:01 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.72 [en] (X11; U; Linux 2.2.16 i686)
Description of problem:
Today I edited a .spec file using GNU Emacs 20.7.1.
I found out that rpm-spec-mode redefines C-u to be a prefix command,
and then binds C-u C-c TAB to `rpm-change-tag'.
The Emacs standard is that major modes can only put new bindings
on "C-c FOO", where FOO is itself a control character (in particular
"C-c LETTER" is reserved for the user).
C-u is globally bound to universal-argument. I use it all the time.
Rebinding it in this way is, I believe, incorrect.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run Emacs
2. C-x C-f /tmp/foo.spec
3. C-u n should insert 4 "n"s, but instead beeps
Works fine with emacs-21.1-2.7